Left for archival purposes.

User avatar
By hreintke
#9840 @Chris,
getpeer currently reports the remote IP and Port (the values for the server connecting to your esp)
In your telnet trial port 23 is the local port, the port where you esp is listening on.
local and remote ports are different numbers.

@Thomas
I indeed tested your getpeer with udp. Looks like the callback from net_socket_received for UDP doesn't insert a net.socket but a net.server (which does not have a getpeer) . I do not yet understand enough from the implementation to solve it myself.
I opened an issue on the nodemcu github.

Herman