Server Configuration Problem in easyrtc application

136 views
Skip to first unread message

Sanket Murugkar

unread,
Jun 10, 2015, 1:40:42 AM6/10/15
to eas...@googlegroups.com

Hi,
I have developed one easyrtc application .
Easyrtc(Node Server) run on 9090 port and apache tomcat run on 8443 port.
I have deployed this application on apache tomcat server using  easyrtc.setSocketUrl(":9090");
I am able access application on node server using        https://localhost:9090/demos/demo_instant_messaging.html 
and on  apche tomcat as               https://localhost:8443/demos/demo_audio_video_simple.html.
It is  working fine  on localhost......

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 On the apche tomcat server in demos folder   i have replaced following lines
<head
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--skip-->
        <title>EasyRTC Demo: Simple Video+Audio</title>
        <link rel="stylesheet" type="text/css" href="//localhost:9090/easyrtc/easyrtc.css" />

        <!--hide-->
        <link rel="stylesheet" type="text/css" href="css/landing.css" />
        <link rel="stylesheet" type="text/css" href="css/demo_audio_video_simple.css" />
        <!-- Prettify Code -->
        <script type="text/javascript" src="js/prettify/prettify.js"></script>
        <script type="text/javascript" src="js/prettify/loadAndFilter.js"></script>
        <script type="text/javascript" src="js/prettify/jquery.min.js"></script>
        <link rel="stylesheet" type="text/css" href="js/prettify/prettify.css" />

        <!--show-->
        <!-- Assumes global locations for socket.io.js and easyrtc.js -->
             <script src="//localhost:9090/socket.io/socket.io.js"></script> 
        <script type="text/javascript" src="//localhost:9090/easyrtc/easyrtc.js"></script>
        <script type="text/javascript" src="js/demo_audio_video_simple.js"></script>

    </head>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
And in the JS file i have replaced   easyrtc.setSocketUrl(":9090");
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

So in my production enviorment we have deployed apache tomcat server and i have this application on this server
But now when i accessing this from my client machine the code wriiten in html file is not able to reolve the machine 
 <link rel="stylesheet" type="text/css" href="//localhost:9090/easyrtc/easyrtc.css" />. It cant resolve localhost:9090

.
Due to some limitation we dont have access to the port 9090 on client machine.The servers 9090 port is not open for client machine
Is there any way that i can  remove the reference of //localhost:9090 by moving any files on the server side..???????
Is there any way that i acn access easyrtc server side code without giving this kind of reference.?????

The above code is working fine on server machine itself.

Eric Davies

unread,
Jun 10, 2015, 10:27:49 AM6/10/15
to eas...@googlegroups.com
looks like your first problem is that localhost in
   <link rel="stylesheet" type="text/css" href="//localhost:9090/easyrtc/easyrtc.css" />
is going to be interpreted as the machine that is running the browser. You need to replace it with the site (ip address or name)  of the easyrtc server



Sanket Murugkar

unread,
Jun 11, 2015, 12:23:54 AM6/11/15
to eas...@googlegroups.com
Hi eric, due to some limitations we have only access to the tomcat server from client machines.. Easyrtc server port is not accessible as the port is not enable to access from client machine... So if I replace local host with IP address of easyrtc server its not working due to port enable issue...

So is there any way so that I can remove this kind of reference I.e remove localhost from the client code I.e from HTML file????is there any way that I can run this tomcat-easyrtc application only in apache tomcat???
Reply all
Reply to author
Forward
0 new messages