How to Get IP Address behind a router/proxy ??

Posted on 2003-03-13
Medium Priority
Last Modified: 2010-04-04
Hi all,

How can i get IP-Address behind a router/proxy ?? And how can i get IP or any info of router/proxy ??
Using InternetGetConnectedState i know if my internet connection is online, and if internet is using a Proxy or LAN to connect to internet!!

Question by:edrus
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

DaFox earned 140 total points
ID: 8129565
Hi edrus.

I did such a program a few month ago.
The problem is that your pcs connected to the lan (router) do only have their local (lan) ip. The router is the only one that knows the wan ip; you can't get it with API calls!

2 possiblities:
- Connect to a website like www.whatismyip.net, parse the website for the ip. Problem: What happens if this website is down???
- Try to communicate with your router (I did via telnet) and get the ip from it. You may have to get some technical information about your router to do so.

Best wishes,

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question