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 #177138 is a reply to message #177131] Thu, 23 February 2012 13:53 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Captain Paralytic wrote:
> On Feb 23, 1:09 pm, "sl@exabyte" <sb5...@hotmail.com> wrote:
>>> I'm assuming you're talking about talking to two people on a remote
>>> LAN, and that LAN uses NAT to connect to the internet.
>>> The first question is - who's connecting to whom?
>>> If the remote systems are connecting to you, then there's no problem.
>>> However, if you are trying to connect to them, there's a lot more work
>>> involved. The router must be set up with port forwarding and you have
>>> to connect to the correct port to forward to the proper machine.
>>> You can find more information in a TCP/IP newsgroup.
>> I am thinking of the scenario where I am talking to 2 persons via the
>> internet, and these 2 persons are in the same LAN, something like chatting.
>> So the problem in my mind is that these 2 persons have the same IP.

> No they don't, the local network will not allow it. They will have
> different IP addresses.

They do as far as the outside world is concerned.

And the network doesn't *disallow* it inside the NAT area either, it
simply stops things working for those two machines :-)

As anyone who has done it in the olden days of static IP addresses will
tell you.

How we sobbed for joy when DHCP on PC's arrived...try managing upwards
of 100 machines on the same LAN..with static IP addresses..
[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: Sun Nov 10 11:39:04 GMT 2024

Total time taken to generate the page: 0.05204 seconds