in reply to Re^2: Getting client ip address from socket connect
in thread Getting client ip address from socket connect
my $server = IO::Socket::INET->new( Proto => 'tcp', LocalPort => $serverport, Listen => SOMAXCONN, Reuse => 1); die "can't setup server" unless $server; my $remotehost; &writelog("$date: INFO: Server $0 started accepting clients connection +s"); while ($client = $server->accept()) { $client->autoflush(1); $remotehost = $client->peeraddr; } But i get this in the log 01/11/2005/ 14:42: INFO: New client connection from Μφ
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Getting client ip address from socket connect
by tirwhan (Abbot) on Nov 01, 2005 at 15:11 UTC | |
|
Re^4: Getting client ip address from socket connect
by Spidy (Chaplain) on Nov 01, 2005 at 17:11 UTC |