This has much more to with the network and routing config of the machine
then anything you would (or could) do programmatically - especially from
.NET code.  What you want is that packets to the IP address of the server
you want to upload to are always routed through the VPN interface.  You'll
want to search the Win2K docs, or other resources for information about
routing (eg. use the "route print" command to see how packets are being
routed through interfaces).

Rick

----- Original Message -----
From: "Mark Rider" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 01, 2004 11:42 AM
Subject: Force a Network Connection


> I have a dual-NIC Win2K Server that needs to grab data from the local
> network (1st NIC) and then upload it to a server through a VPN (2nd NIC).
>
> The problem I am facing is that the upload doesn't always work when I run
it
> - it appears that the program is looking at the local connection and not
> finding the VPN site, so it errors out.  Sometimes I can get it to work
the
> second or third time, but not always.  If I disable the Local connection
> first, the upload to the VPN works fine, but then I have to re-enable the
> Local connection to continue.
>
> Is there a way to either:
> 1) Force the Upload to use the VPN connection, or
> 2) Disable and re-enable Network Connections programmatically?
>
> The EndPoint information I have found in MSDN seems like the way to go,
but
> it appears to only return the value rather than allow me a chance to set
it.
> I have not been able to figure out the right search terms to find the
> answers, but am still looking...
>
> Mark Rider
>
> ===================================
> This list is hosted by DevelopMentorŪ  http://www.develop.com
> Some .NET courses you may be interested in:
>
> NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
> http://www.develop.com/courses/gaspdotnetls
>
> View archives and manage your subscription(s) at
http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to