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:<0110001100101110011000100111010101110010011 010110
11001010100000001100011011100100110000101111010011 011100
11000010111001000101110011000110110111101101101001 00000>