Reputation: 73
How do I get the IP address of the server a request is coming from. Here's a scenario;
I have two servers - client|server. How can I detect the IP of the client server in perl
Upvotes: 1
Views: 957
Reputation: 36329
You need getpeername. Please look up your perldoc.
getpeername
Upvotes: 2