Is it possible to get the external IP address from some common unix command?
ifconfig -a will give me the local IP address...but thats not what I want.
I know that some websites can tell you the external IP. Thats not the solution I want. Ideally, I would like to be able to grep the output of some unix command and pipe it to an application that will monitor it.
One solution I can think of is use wget to get the html source of one of these webpages but that doesn't seem like the best solution.
Any other ideas?
ifconfig -a will give me the local IP address...but thats not what I want.
I know that some websites can tell you the external IP. Thats not the solution I want. Ideally, I would like to be able to grep the output of some unix command and pipe it to an application that will monitor it.
One solution I can think of is use wget to get the html source of one of these webpages but that doesn't seem like the best solution.
Any other ideas?
