I could use a little help with the node demo

84 views
Skip to first unread message

Jon Stephenson

unread,
Apr 19, 2020, 5:55:38 PM4/19/20
to medooze
I got the node demo server working I think but I cant seem to hit the client page. 
I run  "node index.js 127.0.0.1" on an ubuntu 18.04 ec2 instance and I see 

[0x7f07debd1740][1587321839.796][LOG]>RTPBundleTransport::Init()
[0x7f07debd1740][1587321839.796][LOG]-RTPBundleTransport::Init() | Got port [54759]
[0x7f07debd1740][1587321839.796][LOG]<RTPBundleTransport::Init()
[0x7f07debd1740][1587321839.797][LOG]-RTPTransport::SetPortRange() | configured RTP/RTCP ports range [10000,20000]

but when I try and connect to the ec2 instance with the the ed2 instance on the public IP  port 8000 I get no response. 
Also tried  "node index.js [ec2 IP]" and get the same result. 

I also tried do this local on windows under WSL2 and got the same output from running the server but cant get a client to connect. 

tried all these scenarios with both node 10 and node 11. 

Jon Stephenson

unread,
Apr 19, 2020, 6:01:02 PM4/19/20
to medooze
forgot to add on ec2 for testing I have all ports open incoming and outgoing. 

Sergio Garcia Murillo

unread,
Apr 19, 2020, 6:14:51 PM4/19/20
to med...@googlegroups.com
I was going to tell you exactly that .. :)
--
You received this message because you are subscribed to the Google Groups "medooze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to medooze+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/medooze/9535e7b0-9b84-4554-8759-8baf851de4f2%40googlegroups.com.


Jon Stephenson

unread,
Apr 19, 2020, 6:29:56 PM4/19/20
to medooze
with all ports open should i be able to run "node index.js 127.0.0.1" or "node index.js [ec2 IP]"  then in a browser go to [ec2 IP]:8000 and see the demo page?


On Sunday, April 19, 2020 at 3:14:51 PM UTC-7, Sergio Garcia Murillo wrote:
I was going to tell you exactly that .. :)

On 20/04/2020 0:01, Jon Stephenson wrote:
forgot to add on ec2 for testing I have all ports open incoming and outgoing. 

On Sunday, April 19, 2020 at 2:55:38 PM UTC-7, Jon Stephenson wrote:
I got the node demo server working I think but I cant seem to hit the client page. 
I run  "node index.js 127.0.0.1" on an ubuntu 18.04 ec2 instance and I see 

[0x7f07debd1740][1587321839.796][LOG]>RTPBundleTransport::Init()
[0x7f07debd1740][1587321839.796][LOG]-RTPBundleTransport::Init() | Got port [54759]
[0x7f07debd1740][1587321839.796][LOG]<RTPBundleTransport::Init()
[0x7f07debd1740][1587321839.797][LOG]-RTPTransport::SetPortRange() | configured RTP/RTCP ports range [10000,20000]

but when I try and connect to the ec2 instance with the the ed2 instance on the public IP  port 8000 I get no response. 
Also tried  "node index.js [ec2 IP]" and get the same result. 

I also tried do this local on windows under WSL2 and got the same output from running the server but cant get a client to connect. 

tried all these scenarios with both node 10 and node 11. 

--
You received this message because you are subscribed to the Google Groups "medooze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to med...@googlegroups.com.

Sergio Garcia Murillo

unread,
Apr 19, 2020, 6:31:19 PM4/19/20
to med...@googlegroups.com
You need to use the external instance ip


node index.js [ec2 IP]
To unsubscribe from this group and stop receiving emails from it, send an email to medooze+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/medooze/af9c554b-afca-4bab-bdda-05e6d77448eb%40googlegroups.com.


Jon Stephenson

unread,
Apr 19, 2020, 7:50:12 PM4/19/20
to medooze
SSL FTW! 

so I was hitting http://[ec2 IP] and nothing but https://[ec2 IP] and its working

Thanks now to make lots of code that I am sure will blow up but its what we do. 
Reply all
Reply to author
Forward
0 new messages