473,396 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IP Address router

Gav
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
Jul 21 '05 #1
5 1883
try http://192.168.1.1. I think this is the default IP for the router. The
router manul should mention this also.

"Gav" <an*******@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
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?
Thanks
Gav

Jul 21 '05 #2
try http://192.168.1.1. I think this is the default IP for the router. The
router manul should mention this also.

"Gav" <an*******@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
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?
Thanks
Gav

Jul 21 '05 #3
GL
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" <an*******@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
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?
Thanks
Gav

Jul 21 '05 #4
GL
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" <an*******@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
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?
Thanks
Gav

Jul 21 '05 #5
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

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SWJust | last post by:
Hi... is it possible to send data from a socket to at physical address (MAC) on f.x another PC or Router ??? I have a IP header with information about another client, and this cannot be altered,...
3
by: Demetri | last post by:
How do I find out what the network IP address is? For example if I have a cable modem with 68.57.200.50 as the IP address and the linksys router assigns PC's on the network 192.168.1.1 how do I...
1
by: Lorne Smith | last post by:
Hi, I'm running a small network and need to get the external IP address of my router so that I can update my DNS forwarding service should my IP change (it's a dynamic one)... I can get the IP...
3
by: steve | last post by:
anyone know how to get a network router's external ip address? any examples w/b great! tia, steve
5
by: Gav | last post by:
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...
8
by: MrNobody | last post by:
I need to find out the IP address of my local network on the WAN. There is alot of information on getting my local machine IP address but I can't find anything for getting the IP address my network...
6
by: Steven Nagy | last post by:
Howdy, I want to write an application, with some functionality that will detect my "Real World" ip address, ie that of my router, as opposed to the actual IP it is running on which is a...
1
by: Abdulla Herzallah | last post by:
Hi everyone I don't know if I am posting this to the right newsgroup but it is the closest I found, in case you think you can advice me to another newsgroup please feel free to do so. I am so...
1
by: izecul | last post by:
Hi, I'm a newbie here, and what I know about networking you can probably copy on a matchbook :) That said, here's my problem: I've got two wireless routers - D-Link DI-524 and Airlink AR325W....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.