Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created June 3, 2012 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/2863976 to your computer and use it in GitHub Desktop.
Save marcusramberg/2863976 to your computer and use it in GitHub Desktop.
[marcus@labs ~]$ perl -MIO::Socket::INET -lE'print IO::Socket::INET->new(PeerAddr => "localhost:smtp(25)")->peerhost'
10.1.5.227
[marcus@labs ~]$ perl -MIO::Socket::INET -lE'print IO::Socket::INET->new(PeerAddr => "localhost:smtp(25)")->sockhost'
10.1.5.227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment