Re: Determining IP addr via script?

2002-07-08 Thread Michael Hipp
On Monday 08 July 2002 09:08 pm, edj wrote: > Well, the "lynx . . ." command can end with a redirect (> filename), but > then you get all the http stuff. Easier to just give the "p" command to > lynx. Then you get a nice, readable, file. Hehe. I love it. # lynx -dump http://whatismyip.com | gr

Re: Determining IP addr via script?

2002-07-08 Thread edj
On Mon July 8 2002 09:59 pm, Michael Hipp wrote: > On Monday 08 July 2002 08:35 pm, edj wrote: > > My knowledge is so limited, I hesitate to say, but I use the > > following, picked up from somewhere . . . . > > > > #!/bin/bash > > lynx -auth=admin:admin http://192.168.1.1/Status.htm > > > > Conne

Re: Determining IP addr via script?

2002-07-08 Thread Michael Hipp
On Monday 08 July 2002 08:35 pm, edj wrote: > My knowledge is so limited, I hesitate to say, but I use the following, > picked up from somewhere . . . . > > #!/bin/bash > lynx -auth=admin:admin http://192.168.1.1/Status.htm > > Connects to the router and gives IP & all the other stuff, as well. D

Re: Determining IP addr via script?

2002-07-08 Thread Michael Hipp
On Monday 08 July 2002 07:47 pm, Andrew Mathews wrote: > Michael Hipp wrote: > > I have a Linux box behind a LinkSys NAT router that gets a public > > address from DSL on the WAN side. I'm wanting to be able from the Linux > > box to determine what addr has been assigned by SWBell to the LinkSys >

Re: Determining IP addr via script?

2002-07-08 Thread edj
On Mon July 8 2002 05:22 pm, Michael Hipp wrote: > Anyone know a simple way to determine what your public IP address > appears to be via a shell script? I can do it with a web browser by > going to http://www.whatismyip.com . > > (BTW, I'm not talking about the IP addr assigned to a NIC and readab

Re: Determining IP addr via script?

2002-07-08 Thread Andrew Mathews
Michael Hipp wrote: > I have a Linux box behind a LinkSys NAT router that gets a public address > from DSL on the WAN side. I'm wanting to be able from the Linux box to > determine what addr has been assigned by SWBell to the LinkSys box. > > Thanks, > Michael Why not just have it send a blan

Re: Determining IP addr via script?

2002-07-08 Thread Bill Campbell
On Mon, Jul 08, 2002 at 04:39:59PM -0500, Michael Hipp wrote: >I have a Linux box behind a LinkSys NAT router that gets a public address >from DSL on the WAN side. I'm wanting to be able from the Linux box to >determine what addr has been assigned by SWBell to the LinkSys box. This is tricky si

Re: Determining IP addr via script?

2002-07-08 Thread Net Llama!
hrmmm...while i'm sure its possible, this prolly isn't a straightforward or simple task. i've read of cases where you can telnet into the router, and determine its config (including IP) that way. you might want to poke around at groups.google.com and look for the brand/model of your linksys to s

Re: Determining IP addr via script?

2002-07-08 Thread Michael Hipp
I have a Linux box behind a LinkSys NAT router that gets a public address from DSL on the WAN side. I'm wanting to be able from the Linux box to determine what addr has been assigned by SWBell to the LinkSys box. Thanks, Michael On Monday 08 July 2002 04:27 pm, Net Llama! wrote: > This really

Re: Determining IP addr via script?

2002-07-08 Thread Net Llama!
This really is a loaded question. If you're not looking for the IP bound to your NICs primary interface, then you're getting into all kinds of other issues, such as NAT, IP-Masq, protocols, and the like. http://www.whatismyip.com is hardly accurate unless you have a very simplisitic setup. On M

Determining IP addr via script?

2002-07-08 Thread Michael Hipp
Anyone know a simple way to determine what your public IP address appears to be via a shell script? I can do it with a web browser by going to http://www.whatismyip.com . (BTW, I'm not talking about the IP addr assigned to a NIC and readable by ifconfig.) Thanks, Michael