Networking Forums

Networking Forums > Computer Networking > Windows Networking > NAT and socket connection

Reply
Thread Tools Display Modes

NAT and socket connection

 
 
YIguchi
Guest
Posts: n/a

 
      04-11-2007, 02:42 PM
I have one question , does simple socket connection work with NAT ?

I will explain the architecture


There are some 10.0.0.XXXX machines and some are 192.0.0.XXXX machines. They
are connected to each other via Router which does NAT.

My socket server are on 10.0.0.XXXX and clients on 192.0.0.XXXX

Does something special is required to connect server from client or router
itself handle the NAT.

Regards,
Y Iguchi

 
Reply With Quote
 
 
 
 
Nick Domukhovsky
Guest
Posts: n/a

 
      04-12-2007, 06:19 AM
> I have one question , does simple socket connection work with NAT ?
>
> I will explain the architecture
>
>
> There are some 10.0.0.XXXX machines and some are 192.0.0.XXXX machines. They
> are connected to each other via Router which does NAT.
>
> My socket server are on 10.0.0.XXXX and clients on 192.0.0.XXXX
>
> Does something special is required to connect server from client or router
> itself handle the NAT.
>
> Regards,
> Y Iguchi
>

It is not clear from your post in what direction NAT applies...

For internal clients NAT is almost invisible, so you can create sockets
and so on in your application without any troubles.

But if you want to make possible for external clients to make
connections with internal server you should configure static NAT entry
(i.e. connection to your NAT device to some selected port will be
forwarded to your internal server). In this case you should avoid
sending server's IP in packets, because this internal IP has no sense
for extrnal client.



--
With best regards
Nickolay Domukhovsky, MCSA
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A strange problem(about socket tcp connection)~~~ Harry Linux Networking 2 06-24-2007 06:43 PM
How Can I Get Client's IP Address in a Socket Connection? hn.ft.pris@gmail.com Linux Networking 1 04-11-2006 09:24 AM
Socket Connection Probolem - SYN - RST dave livingston Linux Networking 6 04-05-2006 06:19 PM
Troubled with a socket connection problem... please help Mark Kromski Linux Networking 13 05-11-2004 11:44 AM
Win 98 Network Socket Connection Fred Bogin Windows Networking 1 12-02-2003 11:14 PM



1 2 3 4 5 6 7 8 9 10 11