Are the subnet masks different based upon which network you connect to? Your home will be 255.255.255.0 while your work will VLSM out at 255.255.255.254 or less.
Check via command line in Windows with ipconfig
and check the subnet mask with ifconfig
for Linux.
Another way to tell would be to DNS resolve from your computer and see what DNS picks it up, is it your ISP that you use at home or the DNS servers under your offices domain? That would also tell you, i mean a look at your routing tables also.
Check this out and see if you first routes are from inside your companies domain, run this from within command prompt. Find command prompt and open it and type:
netstat -f
TCP 10.0.0.145:56433 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:56462 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:56592 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:56748 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:56782 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:56902 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:56949 stackoverflow.com:http ESTABLISHED
TCP 10.0.0.145:57056 stackoverflow.com:http ESTABLISHED
Example above shows where we are now, the IP's are resolved because of our -f
to this site it should be. Someone said you are running Cygwin in the Windows environment. Why don't you just add the "cygwin\bin" directory to your windows path? You'll have full access to most GNU tools, and can use them in pretty much the same way you do on Linux.
parsing the output of
hostname -A
might work . . . – ernie – 2013-10-18T21:25:33.283Thanks. I've tried that but it gives the host name repeated twice. I should say that I'm running cygwin under Windows7. – Esteban Crespi – 2013-10-18T21:35:56.873
I just get
sethostname: Use the Network Control Panel Applet to set hostname. hostname -s is not supported.
(which is odd since I specified-A
not-s
). ಠ_ఠ – Synetech – 2013-10-19T01:23:50.633