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 #177151 is a reply to message #177141] Fri, 24 February 2012 11:07 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 23.02.2012 17:03, schrieb SL:
>> No they don't, the local network will not allow it. They will have
>> different IP addresses.
>
> Sorry, folks. When I say same IP, I mean the external IP.
>
> I am trying to add something to a chat application; a server is involved
> here, eg user initiates connection to a chat server (via internet), where
> the server routes the messages (I think you gurus know what I mean).
>
> Thanks.
>
>

In the case where the clients connect to the server, there is absolutely no problem
with NAT, it is just transparent. The server responds to these connections like to
any other. Remember: HTTP establishes a TCP connection, and here the endpoints (=
sockets) are identified by ip-address and port number: IP address in the IP header,
port number in the TCP header.

A problem with NAT is to start a connection from the internet to a station on the LAN
through the NAT router. Many call this problem a security feature.

/Str.
[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:23:26 GMT 2024

Total time taken to generate the page: 0.05385 seconds