<p>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. </p>

<p>When I'm working at the office, the responsiveness is just fine. </p>

<p>However, when I work from home the speed is <strong><em>significantly</em></strong> 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.</p>

<p>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.</p>

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

[{'answer_id': 5838, 'author': 'Jason Sparks', 'author_id': 512, 'author_profile': 'https://Stackoverflow.com/users/512', 'pm_score': 0, 'selected': False, 'text': "<p>I worked on a project last summer that required some pretty heavy modifications to .NET Remoting. I don't remember all the specifics, but if we had more than one network interface, we couldn't get the out-of-the-box Remoting implementation to reliably detect which one the Remoting traffic came from, which did horrible things to performance. This sounds like a similar, if not the same, issue.</p>\n"}, {'answer_id': 9330, 'author': 'Ralph Willgoss', 'author_id': 743, 'author_profile': 'https://Stackoverflow.com/users/743', 'pm_score': 0, 'selected': False, 'text': "<p>I don't have any VPN connections on my current computer but somewhere in the TCP/IP properties for the connection there's a checkbox to indicate that you use the remote host as a gateway or something like that.</p>\n\n<p>This once caused me alot of issues since all my traffic would go over the VPN and then back again, even when I wanted to do something locally.</p>\n"}, {'answer_id': 112180, 'author': 'Lee', 'author_id': 13943, 'author_profile': 'https://Stackoverflow.com/users/13943', 'pm_score': 2, 'selected': False, 'text': '<p>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.</p>\n\n<p>I found the link below was useful when setting up an IPC channel.</p>\n\n<p><a href="http://www.danielmoth.com/Blog/2004/09/ipc-with-remoting-in-net-20.html" rel="nofollow noreferrer">http://www.danielmoth.com/Blog/2004/09/ipc-with-remoting-in-net-20.html</a> </p>\n'}, {'answer_id': 1579819, 'author': 'Patrick', 'author_id': 191392, 'author_profile': 'https://Stackoverflow.com/users/191392', 'pm_score': 1, 'selected': False, 'text': '<p>I had this same problem where immediately when you disconnect things are tremendously better.</p>\n\n<p>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. </p>\n'}]
['https://Stackoverflow.com/questions/5002', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/627/']