-
Notifications
You must be signed in to change notification settings - Fork 64
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
WebSocket connection to 'ws://127.0.0.1:7778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED #11
Comments
i am using centos 7 |
Have you started the socket server? |
On localhost (windows 8.1) when i use this command php artisan chat:serve connection successfull but when i use this code on my domain (Centos 7) i m facing error |
|
The JavaScript you are running (on the CentOS client browser) is trying to connect to |
you have any idea how to open port 7778 on centos 7 |
Change the IP address (in the JS) first. I have a feeling you might not need to fiddle with port settings yet. TL;DR no |
i already change ip address in js file but still the same error |
ok, next; add the IP address to that line: Also be sure to update the JS accordingly. |
yes |
ok |
is this correct?
|
I am trying both |
Without the brackets. Then I fear it might be a security issue (related to firewall blocking 7778). Best google something like "unblock ports in CentOS"... |
but in my server no firewall install i try this command for open firewall port firewall-cmd --zone=dmz --add-port=7778/tcp --permanent result FirewallD is not running |
Your server is Windows 8.1 and your client is CentOS 7. Both have built-in firewalls. Ever run a game that minimised to show you a Windows dialog; which asked you to enable network connections for the game? That's the firewall. |
My pc is Windows 8.1 and my server CentOS 7. ok i understand. |
Good luck! Let me know if you figure out what the problem is and I may update the article to reflect your solution. |
i received answer from my support hosting Your port 7778 is open, however, nothing is listening on that port and on the public interface: $ nmap -Pn -p 7778 104.125.50.52 Starting Nmap 6.47 ( http://nmap.org ) at 2014-12-28 08:50 CST Nmap done: 1 IP address (1 host up) scanned in 0.21 seconds |
看不懂 - -|| |
make sure the server listening IP is 0.0.0.0 instead of 127.0.0.1 |
maybe yesman0319 brings the definitive response but, someone can read it? |
i can't understand what i see- translating explicitly." with some <- -||> i have no idea what is that" |
Folks, this is an old issue, and an even older tutorial. If you would like to discuss over twitter (and with a link to some code you are working on at the time), then I can help try to debug there. In the meantime, I'm going to lock this thread. |
Hi
i am facing this issue in browser please suggest any thing
WebSocket connection to 'ws://127.0.0.1:7778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
The text was updated successfully, but these errors were encountered: