[SunHELP] OT: Any way to obtain WAN IP address from a	DSL/CABLE modem/router
    Steve Sandau 
    ssandau at gwi.net
       
    Fri Sep  3 22:11:13 CDT 2004
    
    
  
Andre Blanchard wrote:
> Hello:
> 
> JIC: When you connect your provider assigns an dynamically allocated IP 
> address for your internet connection.  This address is displayed in one 
> of the browser screens via the firmware of your cable/router.  I wish 
> to have that address available through non browser means in order to 
> inform others who require access to this host.  I would like to perform 
> this check during the boot process.
> 
> I was thinking of obtuse ways, like obtaining the URL stream of data 
> from my browser (i.e. invoke netscape with http://192.168.1.1 and 
> capture the output), but I was hoping there is a executable like 
> ifconfig that can sniff out this value.
> 
> Any help appreciated.
> 
If you want to go about it that way, you could fish the IP out of the 
output from wget fairly easily.
Steve
    
    
More information about the SunHELP
mailing list