Go Down

Topic: How to get the IP of the client (Read 458 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy