in reply to Re^3: Getting client ip address from socket connect
in thread Getting client ip address from socket connect
Yes, that's because peeraddr() returns the raw in_addr struct. Either convert it to a string with
$remotehost=inet_ntoa($client->peeraddr);
or use
like I suggested in my node.$remotehost=$client->peerhost;
|
|---|