Re: how to get python socket to use a specific interface

2015-10-28 Thread Cameron Simpson
On 28Oct2015 10:41, Robin Becker wrote: binding to the local IP seems to be a windows only thing. No, it is a pretty standard BSD socket layer thing. (Windows got its original TCP stack from there too). I just tested a Linux RHEL6 host binding to a specific address just now using telnet: /usr

Re: how to get python socket to use a specific interface

2015-10-28 Thread Robin Becker
.. binding to the local IP seems to be a windows only thing. No, it is a pretty standard BSD socket layer thing. (Windows got its original TCP stack from there too). I just tested a Linux RHEL6 host binding to a specific address just now using telnet: /usr/bin/telnet -b x.x.x.193 x.

Re: how to get python socket to use a specific interface

2015-10-27 Thread Cameron Simpson
On 27Oct2015 10:00, Robin Becker wrote: On 26/10/2015 22:29, Cameron Simpson wrote: On 26Oct2015 12:33, Robin Becker wrote: . $ ifconfig eth0 Link encap:Ethernet HWaddr 00:...4 GB) Interrupt:16 eth0:0Link encap:Ethernet HWa... Do you need t

Re: how to get python socket to use a specific interface

2015-10-27 Thread Robin Becker
On 26/10/2015 22:29, Cameron Simpson wrote: On 26Oct2015 12:33, Robin Becker wrote: . $ ifconfig eth0 Link encap:Ethernet HWaddr 00:...4 GB) Interrupt:16 eth0:0Link encap:Ethernet HWa... Do you need to bind to the device itself? Using the co

Re: how to get python socket to use a specific interface

2015-10-26 Thread Cameron Simpson
On 26Oct2015 12:33, Robin Becker wrote: . device? -- Robin Becker Using eth0:0 is normally a method to setup eth0 to respond to a 2nd IPV4/IPV6 address. Have you done the ifconfig steps to enable that? If its been done, you will see it's 2nd address in an ifconfig query. Man pa

Re: how to get python socket to use a specific interface

2015-10-26 Thread Robin Becker
. device? -- Robin Becker Using eth0:0 is normally a method to setup eth0 to respond to a 2nd IPV4/IPV6 address. Have you done the ifconfig steps to enable that? If its been done, you will see it's 2nd address in an ifconfig query. Man pages are wunnerful things. yes I have done

Re: how to get python socket to use a specific interface

2015-10-25 Thread Gene Heskett
On Friday 23 October 2015 05:03:41 Robin Becker wrote: > I need to run lynx on a ubuntu headless server with a specific IP > address in order to try and cancel an email blacklist. > > Lynx doesn't provide a way to do that so I thought to use a local > proxy. I tried pymiproxy and hacked the connec

how to get python socket to use a specific interface

2015-10-23 Thread Robin Becker
I need to run lynx on a ubuntu headless server with a specific IP address in order to try and cancel an email blacklist. Lynx doesn't provide a way to do that so I thought to use a local proxy. I tried pymiproxy and hacked the connection code so it looked like this proxy.py from so