Create a listening socket in PHP ?
From: 127.0.0.1 (newsgroup(at)craznar.com_at_verisign-sux-ijlkl.com)
Date: 10/20/03
- Next message: Phil Powell: "problem using ob_start(), ob_end_clean() and header() combination"
- Previous message: Bob: "Re: MySQL Query Tool for php"
- Next in thread: Luke Ross: "Re: Create a listening socket in PHP ?"
- Reply: Luke Ross: "Re: Create a listening socket in PHP ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 20 Oct 2003 13:35:53 GMT
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)craznar.com@verisign-sux-klj.com EMail:<0110001100101110011000100111010101110010011010110 11001010100000001100011011100100110000101111010011011100 1100001011100100010111001100011011011110110110100100000>
- Next message: Phil Powell: "problem using ob_start(), ob_end_clean() and header() combination"
- Previous message: Bob: "Re: MySQL Query Tool for php"
- Next in thread: Luke Ross: "Re: Create a listening socket in PHP ?"
- Reply: Luke Ross: "Re: Create a listening socket in PHP ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|