Chat freely about anything...

User avatar
By Vitoa
#11807 Hi, the client does not to need to send the IP, because the IP is sent in a lower layer from TCP connection.
For example in nodejs u have this way to catch the IP from sender sock.remoteAddress

server.on('connection', function(sock) {
console.log('Client connected from ' + sock.remoteAddress);
// Client address at time of connection ----^
});


But here in nodemcu
conn:on("receive", function(conn, pl) end end)

pl is payload, and conn should contain connection related variables
whiche elements contains conn?


Any help is welcome

Regards,
Vitor