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 #177126 is a reply to message #177119] Thu, 23 February 2012 13:00 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/23/2012 3:58 AM, SL wrote:
> This is not strictly a PHP question, it just springs into my mind while
> coding sockets in PHP.
>
> Assuming that I am communicating with 2 persons who are in the same LAN, say
> A& B.
>
> When I send some data to A, do I have to take care of the NAT (network
> address translation) ?
>
> Will the sockets take care of it automatically ?
>
> Thanks.
>
>

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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Thu Nov 28 16:54:42 GMT 2024

Total time taken to generate the page: 0.04320 seconds