> 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
|