What I did was the following:
created a PHP file that contained :
$gotIt = array();
$file = "getMyIP.bat";
exec( $file, $gotIt );
echo implode("<br>",$gotIt);
Created a batchfile in the same folder
@ECHO off
ipconfig
Ran it and waited for the firewall to jump all over the action.
I then got an output like :
Windows IP Configuration
PPP adapter 3 USB Modem:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : ***.***.202.81
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : ***.***.202.81
only theres numbers where the ***'s are