PHP and NAT

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
JPulham
Posts: 320
Joined: Sat Nov 19, 2005 12:06 pm

PHP and NAT

Post by JPulham »

could I use a PHP script to perform NAT punch-through?
From what I under stand,(Warning: EXTREME paraphrasing :shock: ) both NATs send out and wait for the reply, but the initial send out from one will look like a reply to the other and then the 'holes' will be left open.
I have a web server, with PHP support, could I use PHP sockets or HTTP to copy the IP addresses over to the two clients and have them start their 5 or 10 connection attempts, or would the PHP be too slow?
pushpork
xDan
Competition winner
Posts: 673
Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:

Post by xDan »

I was wondering this a while back. According to some knowledgeable people, no.

See here: http://www.gamedev.net/community/forums ... 1&#2837270

(of course they could be wrong. If you do figure out a way, let me know! :) )
Post Reply