How do I route an outgoing connection across a virtual IP?

Soldato
Joined
21 Jan 2003
Posts
5,594
I want to connect to a server with a specific IP (virtual) from my Windows machine. (The IP itself is a public one to avoid any confusion.)

Is this possible? I've looked at the route program in Windows to no avail.
 
Last edited:
Do you have some more details on the setup, and what you are looking to do?

From the details you have there, you could simply answer "type <IP ADDRESS>:<PORT>" into a browser....
 
No you mis-understand me.

The virtual IP is on my machine. I want to use this IP when connecting to the server.

To clarify I have one NIC with two IPs.
 
wouldent it be "route add x.x.x.x (ip of server) mask 255.255.255.255 x.x.x.x (Gateway) metric 1 if 2 (for interface)"
 
When you say "virtual IP" you mean you have used alternate config? If so just remove the gateway address on the non virtual IP configuration, then when connecting to an external network it'll use the default gateway specified. Tho the gateway has to be in the same subnet as the virtual address.
It should just take which ever gateway works, in the advanced tab the order they're in is the order of preferance.
 
Back
Top Bottom