ntruchsess / arduino_uip

UIPEthernet: A plugin-replacement of the stock Arduino Ethernet library for ENC28J60 shields and breakout boards. Full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS. Build around Adam Dunkels uIP Stack. Further developed version can be found on https://github.com/UIPEthernet/UIPEthernet
489 stars 212 forks source link

How to recover the IP address of the client? #183

Open Quentlac opened 6 years ago

Quentlac commented 6 years ago

Hello, I would like recover the IP address of the client.

I already tried to add this line in UIPClient.cpp:

uint8_t *EthernetClient::getRemoteIP(uint8_t remoteIP[]) { W5100.readSnDIPR(_sock, remoteIP); return remoteIP; }

and this line in UIPClient.h: uint8_t *getRemoteIP(uint8_t RemoteIP[]);

But it does not work :(

Could you help me please?

Thank :)