in reply to Re: Network or no network???... That is the question!
in thread Network or no network???... That is the question!

As to checking for an IP address, IIRC, on *nix it is often the 'ifconfig' command (check your man or info pages for the needed options), and on Windows (NT, 2K, and XP), the 'ipconfig' command (I can't recall if there is an equivalent for 9x).

As to opening a connection to a known IP/port, you could also try pinging the default gateway as well, perhaps using the Net::Ping module.

  • Comment on Re^2: Network or no network???... That is the question!

Replies are listed 'Best First'.
Re: Re^2: Network or no network???... That is the question!
by dws (Chancellor) on Jun 30, 2002 at 18:06 UTC
    ifconfig/ipconfig will tell you what IP address you were given the last time you acquired a DHCP lease, but they won't tell you that a rat has gnawed through the cat5 leading out of the back of your box unless you invoke the option to renew your lease(s).