Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 24520, Get WAN IP Address - Even Behind a Firewall

by Alex Gregory Email: Anonymous

A function using only Winsock that will return your external IP even behind a firewall.
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 7.0  to 11.0 0 downloads
Copyright: No significant restrictions

Size: 0 bytes
Updated on Tue, 27 Mar 2007 17:37:01 GMT
Originally uploaded on Tue, 27 Mar 2007 17:37:01 GMT
This is a simple and very effective way to get your WAN IP which will work even if you are behind a firewall. The code does rely on an external website beyond your control BUT is very easy to change to manipulate another, or even your own.

Thanks to Thaddy and Marvie for the idea and KOL/VCL examples. Winsock translation is by Alex Gregory -

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03