The connection is working locally just fine. But I need to connect to different machine (which runs node js server) which act as client. I’m using socket.io to transfer data.
The server is running on the local host in server PC.
This is the URL which I’m using in client to connect locally.
ws://127.0.0.1:52300/socket.io/?EIO=4&transport=websocket
This is the server side code related to the port
var io = require(‘socket.io’)(process.env.PORT||52300)
I have tried connecting server and client using this URL, but there was no luck.
ws://192.168.43.44:52300/socket.io/?EIO=4&transport=websocket
(192.168.43.44 is server IP address)
I cannot seem to connect from a different machine which shares the same LAN. Can any one help? I’m really stuck here.