how to get python socket to use a specific interface

Cameron Simpson cs at zip.com.au
Mon Oct 26 18:29:53 EDT 2015


On 26Oct2015 12:33, Robin Becker <robin at reportlab.com> 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
>>pages are wunnerful things.
>yes I have done that and the address is responding, problem is it has 
>been email blacklisted
>
>>$ ifconfig
>>eth0      Link encap:Ethernet  HWaddr 00:.......4 GB)
>>          Interrupt:16
>>
>>eth0:0    Link encap:Ethernet  HWa.......

Do you need to bind to the device itself? Using the correct IP address should 
normally be sufficient. The system you're talking to won't know anything about 
the device, only the address. Try skipping the device binding step.

Cheers,
Cameron Simpson <cs at zip.com.au>



More information about the Python-list mailing list