What Is My IP Address? - IP Address Lookup, Bandwidth Speed Test, IP Info, plus more

Go Back   What Is My IP Forum > All About Code > Coding Problems

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-18-2008, 03:42 PM   #1
maori
Junior Member
 
Join Date: Dec 2008
Posts: 1
maori is on a distinguished road
Default getting external IP

hi guys

i'am trying to recive my external IP in a c++ application (learning)
so from what i have read because i'am behind a router easiest way would be to use a 3dr party ie webpage and grap the info from there ?

so i made this simple php code uploaded to my server and it does display my IP

<?php
$ip = $_SERVER['REMOTE_ADDR'];
print $ip;
?>

can anyone tell me how to pass this in a simple c++ app witch just has a edit box in it ie as soon as you start the app it display the IP i'am at a loss here i tried a few ways i found though google but they didnt work


TIA
maori is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:07 AM.


What Is My IP - IP Command Lines - What is an IP Address - Speed Test - IP Address FAQ

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com