socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

err_connection_refused error

Open rashthedude opened this issue 11 years ago • 5 comments

Hi there,

I'm unable to connect a Rails app using the socket.io client to the a Nodejs app socket.io server. Both are running on localhost but different ports. I did find a few answers about the very same error on stackoverflow but none seem to be working for me. Anything in particular I can do or maybe am overlooking here?

Regards, Rashid

rashthedude avatar Jul 14 '15 21:07 rashthedude

Even tried 'io('localhost', {port: 4210}) to no avail.

rashthedude avatar Jul 14 '15 21:07 rashthedude

Post your error?

tecnogram888 avatar Jul 15 '15 15:07 tecnogram888

Managed to get it to work eventually by: 'io.connect('127.0.0.1:4210)'. Localhost doesn't seem to work, any reason before I close the issue?

rashthedude avatar Jul 15 '15 15:07 rashthedude

Mac: http://stackoverflow.com/questions/5985034/localhost-doesnt-resolve-to-127-0-0-1 Windows: http://www.softaculous.com/board/index.php?tid=4857 Or just google "localhost doesn't resolve" I think it's a local issue due to your environment. Can you ping localhost?

tecnogram888 avatar Jul 16 '15 18:07 tecnogram888

That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible).

darrachequesne avatar Jan 12 '17 15:01 darrachequesne