Always returns 127.0.0.1 - how do I get my real IP (which is currently 206.62.155.15)? Thanks!($a, $b, $c, $d) = unpack('C4', ((gethostbyname('localhost'))[4])[0]); print "$a.$b.$c.$d\n";
In reply to Getting net addy on localhost? by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |