Pages: [1]   Go Down
Author Topic: How to get the IP of the client  (Read 372 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Rain Duo
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: