remoting over router/NAT

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I want to get my remoting app to work over a router with NAT. The
client should be able to conect to the server which lies behind the
router. I have configured the NAT to direct my packages by the server
port which i use (9001), directly to the server (which has a non-unique
internal IP, that's why i need NAT).

After the configuration was done, it didn't work. So I used a packet
sniffer to see what happens. I traced a successfull connection to the
server from within the network (no NAT in action, local adresses) as
well as a connection trial from outside, through the router/NAT. (Ask
me for the ethereal .cap capture files)

For the local connection, which works, the client connects to the
server from it's local IP adress using a **local port** which seems to
be randomly chosen. The server port is the configured one (9001). When
the server sends packages to the client it uses it's randomly chosen
port to adress it. So i see something like:

192.168.1.101 -> 192.168.1.201 1051 -> 9001 ...
192.168.1.201 -> 192.168.1.101 9001 -> 1051 ...
....
and it goes on leading to a successfull connection (IP ending in 201 is
the server).

With the remote connection over NAT, which doesn't entirely work, the
packages from the client arrive in a similar manner, so from a local
port of the client to the configured server port (9001). The NAT works
in this direction. The problem seems to be that the packages from the
server to the client don't make it over the NAT. The server sends
packages to the port of the client from which the communication was
initiated. As i don't know which port will be chosen by the client, I
can't configure the NAT to redirect this port also. Getting no answer,
the client seems to be retrying with different ports. I see something
like this:

X.Y.Z.Q -> 192.168.1.201 4740 -> 9001 ...
192.168.1.201 -> X.Y.Z.Q 9001 -> 4740 ...
(some retrials, then after a while:)
X.Y.Z.Q -> 192.168.1.201 4743 -> 9001 ...
192.168.1.201 -> X.Y.Z.Q 9001 -> 4743 ...
(and so on, with changing client ports)

After a few retries the client throws a timeout.

How can i configure remoting to always use the same client port, so i
can tell NAT about it? Or is there another solution to my problem?

Thanks

Mihai

.



Relevant Pages

  • Re: FTP Server setup... Im so close!
    ... > I have installed the Internet Information Services, etc, and have the FTP ... Your external client is trying to use Passive Mode. ... Since your server is behind NAT, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Unable to print to networked printer - get access denied messa
    ... Check the permissions on the server assuming the client has a true RPC ... How is the Standard TCP/IP port configured for the device? ...
    (microsoft.public.windowsxp.print_fax)
  • Re: interfaces lo:1 lo:2 lo:3? (for remote ssh tunnels)
    ... That's the problem tunneling (port forwarding) solves. ... >>can't get past the client firewall. ... > I don't understand why the server would be making the ... server initiates another connection to the client -- in this ...
    (Debian-User)
  • Re: Remote Connection Issue
    ... through port number 3389 and a workstation on the LAN through port number ... I understand that you want to allow a LAN client ... and you have configured server publishing rule ... > By default Terminal Server and Windows 2000 Terminal Services uses TCP ...
    (microsoft.public.windows.server.sbs)
  • Re: RealVNC
    ... Default listening port for RealVNC server that runs on the machine on which ... Then there is default Java listening port on port 5800 on the client machine ...
    (microsoft.public.windows.server.sbs)