Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have two ISPs /two routers on my LAN with Windows boxes. Switching default gateway (per PC) works fine, so I can choose my outgoing traffic from particular PC to be initiated from whichever ISP I want.

Is there any way to perform some specific HTTP request through **non-default gateway (while all other requests /browsing etc goes normally through default gateway); ideally with some cmd-line tool (like WGET or CURL)? I tried to search through their manuals, but couldn't find it. Alternatively, some solution in PHP would be fine too.


share|improve this question

closed as off topic by mdpc, Scott Pack, Dennis Kaarsemaker, Ward, kce Jun 12 '13 at 4:09

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

Gateway selection is routing.
Routing is handled at the layer below HTTP.

The best you can do is specify a particular source address for your requests (which may send them through a different gateway, depending on your system's network configuration).

Refer to the manual for the software you're using (curl, wget, or other) to determine if this is possible, and what options to specify in order to do it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.