Results 1 to 2 of 2
Hi all,
I am creating a lsit by retrieving the IP address using
use Socket;
$packed=gethostbyname(server);
$get_IP=inet_ntoa($packed)
and now I want to find network (CIDR mask) for those in my ...
- 05-22-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 19
How to find network for an IP in perl
Hi all,
I am creating a lsit by retrieving the IP address using
use Socket;
$packed=gethostbyname(server);
$get_IP=inet_ntoa($packed)
and now I want to find network (CIDR mask) for those in my current network........
Could any one suggest me any way to do that in perl .........
thanks in advance
Last edited by shorye; 05-22-2008 at 05:05 PM. Reason: was incorrect
- 05-25-2008 #2
Do you want to find your local IP? If i understood right, this link can help you.


Reply With Quote