Yayyyyyyyy thank you!!!
for future reference for anyone else..
char crrip[16];
byte rip[4];
client.getRemoteIP(rip); // where rip is defined as byte rip[] = {0,0,0,0 };
sprintf(crrip, "%d.%d.%d.%d", (unsigned char)rip[0], (unsigned char)rip[1], (unsigned char)rip[2], (unsigned char)rip[3]);
client.print("Welcome ");
client.println(crrip);
modifications to ethernet...
I added the following lines to the end of the EthernetClient.cpp file:
uint8_t *EthernetClient::getRemoteIP(uint8_t remoteIP[])
{
W5100.readSnDIPR(_sock, remoteIP);
return remoteIP;
}
I then added the following line (under the virtual void stop(); line)to the EthernetClient.h file:
uint8_t *getRemoteIP(uint8_t RemoteIP[]);//adds remote ip address
Finally I used the following code in my sketch to access the remote IP:
client.getRemoteIP(rip); // where rip is defined as byte rip[] = {0,0,0,0 };
to display the IP in the serial monitor, I used:
for (int bcount= 0; bcount < 4; bcount++)
{
Serial.print(rip[bcount], DEC);
if (bcount<3) Serial.print(".");
}
I'm not sure that this is the most elegant way, but it works in the IDE v1.0
Works perfectly Cheers man
http://110.175.97.110:1234 There it is in action

- that means I can now play with some of the other functionality like remote port etc etc (actually one day...maybe lol)
[/quote]