difficult CAO remoting problem with NAT router

dotnet framework

    Sponsored Links

    Next

  • 1. DrawText (win32) and PasswordChar display problem
    Hi, Here is my problem: I have to draw a string with the PasswordChar (bullets) in a custom control. To be consistent with the TextBox control I use \u25CF. If I set this char to the TextBox for testing, the bullets are correctly drawn. Now If I use the win32 API DrawText function, using the same font than in the TextBox (tahoma), the chars are displayed as '?'. If I use Graphics.DrawString with tahoma they are correctly drawn as bullets. But I HAVE TO use the win32 function. What can I do ? Thank you Nicolas PS: I write in C# with .NET 2.0 beta 2.
  • 2. icons in dialogs
    with messagebox there are various MessageBoxIcon images.. i'm making my own message dialog but would like access to these same images.. how can i access them from my code, then put them in a PictureBox on my form?

difficult CAO remoting problem with NAT router

Postby allen » Thu, 30 Oct 2003 14:11:31 GMT

please don't answer this without reading the entire message.  I'm not
asking about machinename.

I am trying to figure out a way to have my remoting system deal with
being behind a firewall, a NAT router or other various network
devices.

the problem is that when using a CAO will force the server to send
back the 'address' to the client.  Because the people using this
particular product may not be very computer savvy,, I can't rely on
them entering an external IP (for that matter they may be behind a
dynamic IP so they would have to enter it every time which is
untenable).

what I need to know, is how exactly do I intercept where the server is
sending back the 'unique address' to the client so I can put the IP
that the CLIENT sees the server as, not what the SERVER sees itself
as?

machinename isn't a workable solution as most NAT routers available
these days won't re-route the IP from internal back to internal if the
external address is machinenamed in.  Also, machinename isn't workable
for the entry reasons stated above.  I need to intercept the call and
change the address sent back to the client on the fly.



Re: difficult CAO remoting problem with NAT router

Postby Bob Powell [MVP] » Thu, 30 Oct 2003 19:14:32 GMT

Please choose a newsgroup that has some relation to your question.

-- 
Bob Powell [MVP]
C#, System.Drawing

The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
 http://www.**--****.com/ 

Answer those GDI+ questions with the GDI+ FAQ
 http://www.**--****.com/ 

Blog  http://www.**--****.com/ 








Re: difficult CAO remoting problem with NAT router

Postby allen » Fri, 31 Oct 2003 12:41:21 GMT

Bob, posting to this newsgroup instead of the remoting newsgroup was a
mistake that I didn't realize till I just now went to look for my post
and couldn't find it on the right group!

my apologies!


On Wed, 29 Oct 2003 11:14:32 +0100, "Bob Powell [MVP]"





Similar Threads:

1.difficult CAO remoting problem

please don't answer this without reading the entire message.  I'm not
asking about machinename.

I am trying to figure out a way to have my remoting system deal with
being behind a firewall, a NAT router or other various network
devices.

the problem is that when using a CAO will force the server to send
back the 'address' to the client.  Because the people using this
particular product may not be very computer savvy,, I can't rely on
them entering an external IP (for that matter they may be behind a
dynamic IP so they would have to enter it every time which is
untenable).

what I need to know, is how exactly do I intercept where the server is
sending back the 'unique address' to the client so I can put the IP
that the CLIENT sees the server as, not what the SERVER sees itself
as?

machinename isn't a workable solution as most NAT routers available
these days won't re-route the IP from internal back to internal if the
external address is machinenamed in.  Also, machinename isn't workable
for the entry reasons stated above.  I need to intercept the call and
change the address sent back to the client on the fly.



2.remoting over router/NAT

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

3..NET Remoting CAO - NAT

Hi all,

Is there a way to use .net remoting CAO, where a client or server or both, 
are using NAT? I need do it this way, because I need keep my instance alive 
between calls. 


4.Fire wall or NAT router problem

Hi,
I want to know what problems I can face if client,or a server has installed 
firewall?
What problems,in case of firewall or  NAT router has been installed? ALso, 
will the probllems be same on tcp and http channels?
thks

5.webmethod "push" through NAT (network address translation) firewall-router

Hello,
Instead of having my client (desktop) application poll the server, I would 
like to have my server "push" data to a desktop application. The desktop 
application will most probably reside on the other side of a firewall/router 
with address translation. How do I perform such a feat with HTTP-based web 
services?
Thanks in advance,
Gene 


6. Newbie:Connecting via TCP to a machine behind a NAT router

7. Problem in .NET Remoting with Client Activated Objects(CAO)



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 31 guest