I did a script that shows my ip :
use Socket;
use Sys::Hostname;
my $host = hostname();
my $addr =inet_ntoa(scalar gethostbyname($host || 'localhost'));
It shows my ip adress on the machine connected to internet , but the
machine connectet trough the local network just shows
127.0.0.1
I dont need to do it in perl, I could use shell instead.
use Socket;
use Sys::Hostname;
my $host = hostname();
my $addr =inet_ntoa(scalar gethostbyname($host || 'localhost'));
It shows my ip adress on the machine connected to internet , but the
machine connectet trough the local network just shows
127.0.0.1
I dont need to do it in perl, I could use shell instead.
