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

Client side not connecting? #251

Open
carlo-fontanos opened this issue Nov 17, 2020 · 6 comments
Open

Client side not connecting? #251

carlo-fontanos opened this issue Nov 17, 2020 · 6 comments

Comments

@carlo-fontanos
Copy link

Hi,

I am trying to run on my server (Centos 7), but I get the following error:

image

net::ERR_CONNECTION_TIMED_OUT

I have enabled public access to port: 2120 using the following :

firewall-cmd --zone=public --add-port=2120/tcp --permanent
firewall-cmd --reload

But still not working. Any solution please?

The code works in my localhost.

@walkor
Copy link
Owner

walkor commented Nov 17, 2020

Security group?

@carlo-fontanos
Copy link
Author

Hi, I'm not sure what you mean by Security group, how do I check that please?

@walkor
Copy link
Owner

walkor commented Nov 17, 2020 via email

@carlo-fontanos
Copy link
Author

carlo-fontanos commented Nov 17, 2020

Hi, thank you for your reply. I am not using AWS. I purchased my VPS from ionos.com. I installed Centos 7 OS in it.

You can see below that that the port 2120 is open in firewall.:

image

I am not sure why my client side is not able to connect., the server side is able to send message properly.

<script src='https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.1/socket.io.min.js'></script>
<script> 
var socket = io('http://' + document.domain + ':2120');
</script>

Any other recommendations please?

@walkor
Copy link
Owner

walkor commented Nov 17, 2020

I can't help more. It looks like a server network problem, and I think you should go to ionos.com ask for help.

@binemmanuel
Copy link
Contributor

In my case @carlo-fontanos I had to do an extra work, I used a proxy on my apache configuration to get things up and running.
I don't know if the could the same for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants