Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo gethostbyname(trim(gethostname())) . "\n";
- echo $_SERVER['SERVER_ADDR'] . "\n";
- echo exec("/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment