James lubor
James lubor

Reputation: 73

How do I get the IP address of the server a request is coming from?

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

Answers (1)

Ingo
Ingo

Reputation: 36329

You need getpeername. Please look up your perldoc.

Upvotes: 2

Related Questions