Mazzaroth on 02/19/11
Last Edited at 02/19/11 03:30am
sub getLocalhostIpAddress{ my @addr = (gethostbyname(hostname()))[4]; return join ('.', unpack ("C4", $addr[0]));}
Report this snippet Tweet
Comment:
You need to login to post a comment.