Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2003-03-13
1
Medium Priority
?
445 Views
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!!

Thanx.
0
Comment
Question by:edrus
1 Comment
 
LVL 6

Accepted Solution

by:
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,
Markus
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

578 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