-->
Page 1 of 1

getting client IP within server code

PostPosted: Wed Jan 07, 2015 9:20 am
by picstart
Some IDE's provide info as to methods and properties by code completion.. example
server = net.createServer(net.TCP)

typing net. would give a list of properties and methods.
Issue:
I'd like to get the clientip when the client connects to the server...I looked at getpeername() but it didn't work returned nil
How do I get the clientip?
How do you know what methods are supported?
.. ex server = net.createServer(net.TCP allows
code like server:listen with a call back function to accept the payload.

Can esp8266 lua code be emulated in a PC IDE that will expose the capabilities of the lua libraries and functions?

Re: getting client IP within server code

PostPosted: Wed Jan 07, 2015 9:51 am
by Hans174
I strongly support your request for the client IP address

see: http://www.esp8266.com/viewtopic.php?f=24&t=1083