Go Down

Topic: How to get the IP of the client (Read 390 times) previous topic - next topic

alrik

I have a question, how can I get the IP of the people who connects to my arduino-ethernet shield? I supose that there should be a way but I cant find it.

sthoduka

Are you using webduino?
If so, if you look at WebServer.h, you will see 'Client' is a private variable.

Then if you open up Client.h (in the Ethernet library), you'll see it has a private variable '_ip'.

If you put in two methods (one in the Client class and one in the WebServer class) to return the ip, it should work.

I haven't tried it, and can't be sure it will work.

Go Up