Drags111 Posted November 10, 2007 Share Posted November 10, 2007 Hello, how would I get the External IP of the computer running the php script, and store it in a var named curIP? Thanks! And if we need to we can get it from here: http://whatismyip.com/automation/n09230945.asp Link to comment https://forums.phpfreaks.com/topic/76760-solved-getting-external-ip/ Share on other sites More sharing options...
cunoodle2 Posted November 10, 2007 Share Posted November 10, 2007 Here you go... <? $curIP = GetHostByName($REMOTE_ADDR); ?> Or this... <? $curIP = _SERVER["REMOTE_ADDR"]; ?> Link to comment https://forums.phpfreaks.com/topic/76760-solved-getting-external-ip/#findComment-388638 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.