How does one go about creating a listening socket in a PHP script.
I'm trying to work out a way of finding out my IP address (dynamic,
behind NAT) and I can't use the normal http idea to get it (due to
stuff proxy by ISP).
SO what I thought was to write a protected PHP script which listend for
ONE request on that port - and send back the IP bound on that port.
So from my linux box I would:
1. GET http://xyz.com/wait.php?port=2002
2. telnet xyz.com 2002
Thus geting my IP address ...
Any ideas ?
--
Spam:newsgroup( at)cr*********@ verisign-sux-klj.com
EMail:<01100011 001011100110001 001110101011100 10011010110
110010101000000 011000110111001 001100001011110 10011011100
110000101110010 001011100110001 101101111011011 0100100000>