Remoting over Internet with server behind gateway



Hi,
i have our server located on local network, but i need to be albe to connect
it from internet as well.
I am able to connect it from Internet when i set port forwarding on gateway
and then set "machineName" property of tcp channel to "my.gateway.addr".

<channel port="61612" timeout="2000" ref="tcp" machineName="my.gateway.addr"
useIpAddress="false">

Problem is that with this settings, i am unable to connect to server from
local network - I need to setup machineName to "gate.firma.cz" for
connections comming fom Internet and to "localname" for local connections. I
tried to add second channel to <channels> section, but it seems .NET is not
able to deside which chanel to use and always use first one.

<channels>
<channel name="T2" port="61613" timeout="2000" ref="tcp">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>

<channel name="T1" port="61612" timeout="2000" ref="tcp"
machineName="my.gateway.addr" useIpAddress="false">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>

What am i doing wrong?
Any idea how to make work so i can connect to server from within local
network as well as from the Internet?

Thanks

.



Relevant Pages

  • Re: NFS on 11.0
    ... - the first attempt was with an 11.0 NFS client. ... The top level directory on the server is setup for 777 ... the local network that will be used/viewed on the internet. ...
    (alt.os.linux.suse)
  • Re: DNS problem
    ... I have DNS-server inside a local network. ... In mine DNS-server are registered my local a server. ... I DNS-server also can resolve addresses of servers in INTERNET. ...
    (microsoft.public.win2000.security)
  • Re: Generic host svchost asks for internet access?
    ... other computers on your local network that sounds like a good strategy. ... I guess you are correct since time synch would have been initiated by my ... I have my Zone Alarm's setting for svchost to allow as server for Trusted ... zones and to block for Server Internet. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Remoting over Internet with server behind gateway
    ... i have our server located on local network, but i need to be albe to ... I am able to connect it from Internet when i set port forwarding on ... Problem is that with this settings, i am unable to connect to server from ... tried to add second channel to <channels> section, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Urgent! New router and big disaster
    ... The SBS DNS server, running on ... its IP it means that your problem is now DNS. ... forward ports to it reliably in the router. ... I should have been more clear about internet connection.. ...
    (microsoft.public.windows.server.sbs)