IIRC, this is an instance of what's called "source routing", and was largely shut off after network admins realized it was a security issue.
Of course, if you have root/administrator permission, you could probably do it. But if you have that, you could probably just fix the routing table. On Sat, Feb 5, 2011 at 11:30 AM, Nikola Skoric <n...@fly.srk.fer.hr> wrote: > Is there a way to create a TCP connection using a gateway of my > choice? > > I have a regular user account on a WinXP machine. It has a DNS server > and default gateway configured, and that DNS server and default > gateway don't see the rest of the Internet, just the local > network. But, I know an IP address of another DNS/gateway pair which > is used to access the Internet, and I can ping them (and send nslookup > queries) from my machine. > > So, is there a way to tell python "don't use my default gateway, here > is an address of the gateway I want you to use"? I've been googling, > but to no avail... > > -- > "Now the storm has passed over me > I'm left to drift on a dead calm sea > And watch her forever through the cracks in the beams > Nailed across the doorways of the bedrooms of my dreams" > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list