How to tell IP address of remote machine?
Timothy Murphy
gayleard at eircom.net
Mon Oct 26 16:36:03 UTC 2009
Tait Clarridge wrote:
>> I had a little program which I ran each day
>> as a cron job to mail me the IP address of a machine
>> in a different country.
...
>> In any case, the program has ceased to work
>> because the site heliohost seems to have gone off-line.
> I have been using wget to check my external IP (for conky).
>
> wget -O - http://ip.tupeux.com | tail
>
> Should give you the output to STDOUT...
Sadly, I tried this on my remote machine,
but it did not give the same address as
"firefox http://whatismyipaddress.com/"
(where I had to wait for a minute or so to get the response).
I'm baffled by this at the moment.
I can ping both addresses, but cannot ssh into either,
which I take to be the concrete test that I have the right address.
(But I suspect that upgrading the remote machine to CentOS-5.4
may have changed things in some way.)
I'm pretty sure that "whatismyaddress.com"
has given the correct address in the past.
Surprisingly to me, "lynx http://whatismyipaddress.com/"
gets an error message on both local and remote machines.
"traceroute -n google.com", which has also been suggested,
gives a third IP address.
I shall continue with my experimentation ...
--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
More information about the fedora-list
mailing list