Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS failed to connect to server #1371

Closed
angelognanamuthu opened this issue Jan 9, 2019 · 37 comments
Closed

OBS failed to connect to server #1371

angelognanamuthu opened this issue Jan 9, 2019 · 37 comments
Labels

Comments

@angelognanamuthu
Copy link

Hello, I have an active site, and I am having trouble in live streaming. I installed the server and followed all the steps. But I am getting this error in OBS if I hit start streaming: Failed to connect to the server.
The connection timed out. Make sure you've configured a valid streaming service, and no firewall is blocking the connection.
obs error

@DanielnetoDotCom
Copy link
Member

can you make a telnet to the port 1935 for RTMP connection?

are you sure your NGINX is running?

@angelognanamuthu
Copy link
Author

How do I check if my NGINX is running?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

terminal: ps aux

start up nginx:
cd /usr/local/nginx/sbin/
./nginx

@angelognanamuthu
Copy link
Author

how do I make a telnet to the port 1935 for RTMP connection?

@angelognanamuthu
Copy link
Author

Do I do that in the ssh terminal?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

yes

@angelognanamuthu
Copy link
Author

Do you know how to make a telnet to the port 1935 for RTMP connection

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

i dont know how to use telnet maybe Daniel know. maybe lets go to steam chat

@angelognanamuthu
Copy link
Author

ok I used the command you gave and it said could not open the file permission denied.

@angelognanamuthu
Copy link
Author

what does that mean?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

do you have Steam ? It's easy to text chat on steam

@angelognanamuthu
Copy link
Author

no I do not

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

now thats hard. it looks like you dont have Superuser or root access to the server

@angelognanamuthu
Copy link
Author

Ohh so what do I need to do? Can you help me, please?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

you have vps with root access ? i can teach you from the start on ubuntu 16 fresh install server

@angelognanamuthu
Copy link
Author

I used AWS EC2 instance as my server.

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

I use this Ubuntu-16.04-x86_64 server. You need to reinstall the server to Ubuntu-16.04-x86_64
Nginx-rtmp apache2 mysql youphptube all runnin good

@angelognanamuthu
Copy link
Author

yes I have that as my server.

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

I will upload some file to you via mediafire

@angelognanamuthu
Copy link
Author

Yes sure my name is angelosamuel1999

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

@angelognanamuthu
Copy link
Author

do I upload this to my terminal?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 11, 2019

no. unzip it to your desktop and read

@angelognanamuthu
Copy link
Author

ok I will do that and get back to you.

@DanielnetoDotCom
Copy link
Member

For AWS EC2 you must make sure the port is open.

to make a telnet, you should be able to find instructions on google.

make sure you will make a telnet from your PC to the server

telnet [yourServerIP] [port]

Something like that:

telnet 123.123.123.123 1982

@angelognanamuthu
Copy link
Author

So do you know anyone who is using your code for their website and it's active?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 15, 2019

I don't know if some other is using my nginx.conf
I format my ubuntu twice yesterday.Youphptube installed twice too and my conf working just fine all the time.

@angelognanamuthu
Copy link
Author

Hey so I opened port 1935 in AWS EC2 instance, and I can connect to the server and OBS is streaming. But I am not getting any output in the site. When I tried to connect the telnet to port 1935, I am getting a message stating "Connection closed by foreign host." What does this mean? Could you kindly help me, please?

@DanielnetoDotCom
Copy link
Member

Hi

Not sure but if you can connect with OBS it should be fine with your connection

make sure you select the option listed transmition

image

@angelognanamuthu
Copy link
Author

Hey so I did that, and the live streaming worked, and I received a notification in the site, but I am getting this error. Could you help me,
live error
please?

@Ishi-k2
Copy link

Ishi-k2 commented Jan 24, 2019

Sets on obs Setting/Output rescale output: 640x360, rate control: cbr
Reload web browser couple of times.

@DanielnetoDotCom
Copy link
Member

@angelognanamuthu you may find something on your javascript log

@angelognanamuthu
Copy link
Author

Hey so what do you mean by javascript log?

@DanielnetoDotCom
Copy link
Member

@angelognanamuthu try to look your browser console.

try to google how to do that

@angelognanamuthu
Copy link
Author

So this is what my javascript log is showing? Can you please help me.
e

@angelognanamuthu
Copy link
Author

this is the browser console
e2

@stale
Copy link

stale bot commented Mar 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 12, 2019
@stale stale bot closed this as completed Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants