Node js socket io connection fails when two machines are running

I have a hunch! It might be related to being routed in between machines. This topic below talks about it and has an example repo:

If that is not enough, can you try debugging with this? Troubleshooting connection issues | Socket.IO