FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP socket and NAT
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP socket and NAT [message #177134 is a reply to message #177127] Thu, 23 February 2012 13:37 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
sl@exabyte wrote:

>> That is NAT in short.
>>
>> So I don't expect you have to worry about that in your case.
>>
>
> This example clears the air. So the key is the router comes up with random
> port number, and the reply specifies that port number.
>

Yes, and the router maintains a state table that associates that port
with an internal machine IP address and original originating port, and
sends the packet back correctly.

There are a few wrinkles with some protocols that expect to be able to
open a connection back to the original machine - ftp is/can be one such.

There a bit more intelligence is required by the router. It sees there
is an existing outbound ftp link and therefore knows what to do with
incoming requests to open the 'back channel'..as long as only one
machine on the LAN is ftp-ing that remote machine.;-)




> Thanks a lot.
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: chat on web, Ajax ?
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 09:51:14 GMT 2024

Total time taken to generate the page: 0.03859 seconds