DEV Community

loading...

Discussion on: Can't connect to remote server running Socket.io

Collapse
brandinchiu profile image
Brandin Chiu

Where are you setting your port variable on your server side? Also note that your front end lists the port number as 7000, but your comment on the server mentions 3000.

Collapse
dmahely profile image
Doaa Mahely Author

Hello Brandin. My bad, I'm connecting to port 7000 on my local which works, but connecting to port 3000 on the remote server. I'm starting to think port 3000 is closed or something.