How to return the WAN IP?

Blitz3D Forums/Blitz3D Programming/How to return the WAN IP?

stayne(Posted 2008) [#1]
My PCs are behind a router (192.168.x.x). I need to find my WAN IP with Blitz3D and return it. Any ideas?


GfK(Posted 2008) [#2]
The easiest way would be to open a stream to a PHP script:

<?php
  echo $_SERVER['REMOTE_ADDR'];
?>