Error on Python

timr at probo.com timr at probo.com
Sun Feb 10 19:38:51 EST 2008


On Sat, Feb 09, 2008 at 11:05:34PM -0500, Steve Holden wrote:
> Tim Roberts wrote:
> > maehhheeyy <maehhheeyy at gmail.com> wrote:
> > 
> >> Hi, right now I'm using Python and Multicast. I have the code for
> >> Multicast receiver on Python but I keep getting this error;
> >>
> >> File "<string>", line 1, in bind
> >> error: (10049, "Can't assign requested address")
> >>
> >> The error is coming from this line;
> >> sock.bind ((MCAST_ADDR, MCAST_PORT))
> >>
> >> Can anyone please help me solve this problem?
> > 
> > Where did you get the multicast module?  Are you trying to do TCP
> > multicast?  What is the address you are trying to use?
> 
> TCP multicast? That doesn't make sense, there can only be two endpoints 
> to a TCP connection. But *you* know that.

TCP multicast exists.  There are special IP ranges for it, but it also
takes special support in the local network.  The fact that he used
MCAST_ADDR made me suspicious of that, hence my question.

> Couldn't the port just be in use?

That usually gets 10048, "address in use".
-- 
Tim Roberts, timr at probo.com
Providenza & Boeklheide, Inc.



More information about the Python-list mailing list