IP Address router

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello all

I had written a program a while back which simply grabs the ip address of my pc and using ftp uploads the file to a webspace. (This was written in C++)

I have now purchased a Linksys router so now the IP address that I want is stored in the router and my pc gets a 192.168.0.x ip address, does anybody know how I can get the ip address from my router

Thank
Gav
 
try http://192.168.1.1. I think this is the default IP for the router. The
router manul should mention this also.

Gav said:
hello all,

I had written a program a while back which simply grabs the ip address of
my pc and using ftp uploads the file to a webspace. (This was written in
C++).
I have now purchased a Linksys router so now the IP address that I want is
stored in the router and my pc gets a 192.168.0.x ip address, does anybody
know how I can get the ip address from my router?
 
You might want to look into coding for UPNP (Universal Plug-and-Play) most
of these dsl/cable modem routers support it now, and this may provide the
functionality you are looking for.
Otherwise, if you are looking for the actual public IP address of the
router, you might be out of luck, as most of these routers only provide an
HTML interface to their settings, and have done away with telnet or SNMP
access to their settings.

Gav said:
hello all,

I had written a program a while back which simply grabs the ip address of
my pc and using ftp uploads the file to a webspace. (This was written in
C++).
I have now purchased a Linksys router so now the IP address that I want is
stored in the router and my pc gets a 192.168.0.x ip address, does anybody
know how I can get the ip address from my router?
 
All you need to do is use one of the many services on the internet that can query your external facing IP address, such as : http://checkip.dyndns.org..... there are plenty more. Just a few lines of code to query a URL will get your your IP address.

-Ben
 
Back
Top