General information
Category:
Internet applications
>>>Hi
>>>I have a workstation that runs 24/7 many routines, connects to vfp9 web services worldwide, create xmlhttp objects to connect to other apps, runs web services and executes work in the lan and many many more.
>>>Lately, one of the connections required and IPSEC VPN connection, which forced me to use 2 NICS ( network cards ) for that computer.
>>>Now i have the following setup:
>>>Card 1, IP: 10.103.37.8 ---> this one creates a socket connection through vpn
>>>Card 2, IP: 192.168.1.5 ---> this is the normal one, does all the work, web services, browses the internet, etc...
>>>For card1, when i create the socket connection, i can specify my ip address, which works great.
>>>The problem is that i noticed that when browsing the internet now, it takes the system a long time to figure out what ip to use ( card 2 ), and it sometimes even timeout.
>>>I sometimes try: CREATEOBJECT("Microsoft.XMLHTTP") then when trying the .Send() method, i get a "resource not found error" , then i retry and it works.
>>>Same for web services, mssoapinit fails many times.
>>>How can i tell microsoft.xmlhttp and mssoap.soapclient objects to specifically use the CARD2 ip address?
>>>
>>>TIA
>>>JAime
>>
>>You can use routing, see ROUTE command in windows cmd.exe
>
>Thanks Dorin
>I checked the ROUTE help, but it's quite hierogliphic...Googled it a bit then got myself into more trouble...In the meantime, i set a lower metric in the tcp/ip options for the card2, and a higher one for card1, but i still don't know for sure if that did the trick completely :-(
>
>Thanks for your help
>Jaime
We have VPN as well (leased line), and a separate connection for internet , but only one NIC
The default gateway is the router connected to WAN/Internet
I alse have permanent route for VPN
route add -p 192.168.200.0 255.255.255.0 192.168.0.252 metric 1 (.252 addredd is VPN router address )
You can try:
route add -p 10.103.0.0 255.255.0.0 {vpn gateway} metric 1 IF 1
HTH
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only