[plug] Determining ip address

Cameron Patrick cameron at patrick.wattle.id.au
Wed Dec 17 14:07:52 WST 2003


On Wed, Dec 17, 2003 at 01:59:56PM +0800, James Devenish wrote:
| In message <3FDFEF43.7000608 at wasp.net.au>
| on Wed, Dec 17, 2003 at 09:53:07AM +0400, Brad Campbell wrote:
| > I'm behind a Lucent Cellpipe 20A pppoa gateway up here, I need an easy, 
| > scriptable way to determine my external ip address
| 
| For Linux, Cameron parses the output of `ip addr show dev <if>` or
| `ifconfig` or `netstat -ei` style commands (shown an earlier thread
| from the last two days).

I don't, my computer does :-)  But that wouldn't work in this case, as
it sounds as though the external interface is on the Lucent, not the
Linux box.

Cameron.




More information about the plug mailing list