fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.49k stars 1.08k forks source link

connect failed: ETIMEDOUT #237

Closed shankar667 closed 8 years ago

shankar667 commented 8 years ago

Hi, I am using example-3 and getting the error: connect failed: ETIMEDOUT, please see log below:

D/RtspClient: Connecting to RTSP server... I/RtspClient: TEARDOWN rtsp://192.168.0.42:1935/live/myStream RTSP/1.0 W/System.err: java.net.ConnectException: failed to connect to /192.168.0.42 (port 1935): connect failed: ETIMEDOUT (Connection timed out)

and also installed the Wowza Streaming Engine locally and created a "Source Authentication".

anything missing?

ahmadeqbal commented 8 years ago

maybe you'r firewall is refusing the connection have you opened port 1935 on you'r local machine?

nthapa13 commented 8 years ago

I had the same problem yesterday, my computer's IP was 192.168.0.5 and wowza server's IP was 192.168.26.1, I could access the wowza IP from my machine but not from my mobile phone. So I just installed wowza in a remote computer with a public IP and now it works. I couldnt resolve the problem locally. I dont think the problem is in the code but the problem is somewhere in the network setup, most probably firewall setup.

ahmadeqbal commented 8 years ago

follow this link to open the port on you'r local computer http://www.wikihow.com/Open-Ports

shankar667 commented 8 years ago

Thank you so much for letting me know, I found, the issue comes from firewall

shankar667 commented 8 years ago

Issue fixed by modifying firewall settings. Thank you!