Re: Remoting over Internet with server behind gateway
- From: "Paul" <paulriley@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 May 2009 15:24:16 +0100
Try Webservices(SOAP)
"Michal Rizek" <MichalRizek@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CD9803B2-5682-48A5-9399-B15F727CE852@xxxxxxxxxxxxxxxx
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
.
- References:
- Remoting over Internet with server behind gateway
- From: Michal Rizek
- Remoting over Internet with server behind gateway
- Prev by Date: LINQ to XML using VS 2005
- Next by Date: IEnumerator demands two conflicting Current properties - why?
- Previous by thread: Remoting over Internet with server behind gateway
- Next by thread: threads (static class)
- Index(es):
Relevant Pages
|