Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Remoting Speed and VPNs

I'm working on a project which uses .NET Remoting for communication between the client application and an object server. For development, the client, server, and MSSQL database are all running on my local development machine.

When I'm working at the office, the responsiveness is just fine.

However, when I work from home the speed is significantly slower. If I disconnect from the VPN, it speeds up (I believe, but maybe that's just wishful thinking). If I turn off my wireless connection completely it immediately speeds up to full throttle.

My assumption is that the remoting traffic is being routed through some point that is slowing everything down, albeit my home router and/or the VPN.

Does anyone have any ideas of how to force the remoting traffic to remain completely localized?

like image 526
Donovan Woodside Avatar asked Aug 07 '08 17:08

Donovan Woodside


2 Answers

Perhaps during development you could use an IPC remoting channel which uses named pipes instead of TCP. If your remoting channels are set up via a config file then you won't even have to recompile.

I found the link below was useful when setting up an IPC channel.

http://www.danielmoth.com/Blog/2004/09/ipc-with-remoting-in-net-20.html

like image 123
Lee Avatar answered Nov 03 '22 13:11

Lee


I had this same problem where immediately when you disconnect things are tremendously better.

If you are using windows VPN, you have to change a default setting. It will force a connection to use the remote router as your gateway while connected. If you go to properties for the connection, then to the networking tab. Select TCP/IPv4 and go to properties. In this window select Advanced... and there will be an option to use the default gateway on the remote network, make sure this is NOT checked. This should help immensely.

like image 24
Patrick Avatar answered Nov 03 '22 13:11

Patrick