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 #177147 is a reply to message #177140] Thu, 23 February 2012 20:42 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:53 pm, The Natural Philosopher <t...@invalid.invalid>
> wrote:
>> 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.
> But that is as far as the outside world is concerned. They will still
> not have the same IP addresses.
>
>> And the network doesn't *disallow* it inside the NAT area either, it
>> simply stops things working for those two machines :-)


> The local network will not allow 2 machines with the same IP address
> to function on it (communication wise)
>

No, nothing disallows anything. It is just that any machine on that
network will not know which of two competing RARP responses to honour.

In short its perfectly possible to have two different MAC addresses tied
to the same IP address BUT other IP machines on that ethernet can't then
tell which one to direct packets to.
[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:46:48 GMT 2024

Total time taken to generate the page: 0.07044 seconds