This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error sending packets to multicast IPV4 address
Type: behavior Stage:
Components: None Versions: Python 3.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: casevh, dmahn, giampaolo.rodola, neologix
Priority: normal Keywords:

Created on 2011-02-19 03:54 by dmahn, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mtest1.py casevh, 2011-02-19 06:17
Messages (6)
msg128827 - (view) Author: Dan Mahn (dmahn) Date: 2011-02-19 03:57
Can't send UDP packet to multicast address.  See traceback.

    s.sendto( bytearray, ("227.5.6.7", 6543))
socket.error: [Errno 10065] A socket operation was attempted to an unreachable host
msg128828 - (view) Author: Dan Mahn (dmahn) Date: 2011-02-19 03:57
This has occurred in RC3
msg128831 - (view) Author: Case Van Horsen (casevh) Date: 2011-02-19 06:17
I tested multicast without any issues using the attached script. I used RC3 on both Windows 7 and Linux. I did need to disable the firewall on my Windows system before multicast would work.

Start one or more clients using: "python mtest1.py client"

Send data using: "python mtest1.py server hello 10"
msg128839 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-02-19 10:36
Are you using a default gateway ?
Are you sure this gateway supports multicast ?
See for example http://www.sockets.com/err_lst1.htm#WSAENETUNREACH :
"""
WSAENETUNREACH (10051) Network is unreachable. 

Berkeley description: A socket operation was attempted to an unreachable network. 

WinSock description: Almost same as Berkeley. For WinSock, this error is equivalent to Berkeley's EHOSTUNREACH error, the catch-all error for unreachable hosts. "You can't get there from here." 

TCP/IP scenario: The local network system could generate this error if there isn't a default route configured. Typically, though, WinSock generates this error when it receives a "host unreachable" ICMP message from a router. The ICMP message means that a router can't forward the IP datagram, possibly because it didn't get a response to the ARP request (which might mean the destination host is down). Note: this error may also result if you are trying to send a multicast packet and the default gateway does not support multicast (check your interface configuration). 
"""

By the way, when you submit this kind of issue, it's a lot easier to analyse if you provide a sample code.
msg134591 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-04-27 16:10
Suggesting to close.
msg134796 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-04-29 17:24
Closing as invalid, since it's definitely not a Python issue, but much more likely a network configuration problem.
History
Date User Action Args
2022-04-11 14:57:13adminsetgithub: 55456
2011-04-29 17:24:54neologixsetstatus: open -> closed
resolution: not a bug
messages: + msg134796
2011-04-27 16:10:09neologixsetnosy: + giampaolo.rodola
messages: + msg134591
2011-02-19 10:36:14neologixsetnosy: + neologix
messages: + msg128839
2011-02-19 06:17:44casevhsetfiles: + mtest1.py
nosy: + casevh
messages: + msg128831

2011-02-19 03:57:28dmahnsetmessages: + msg128828
2011-02-19 03:57:03dmahnsetversions: + Python 3.2
title: e -> Error sending packets to multicast IPV4 address
messages: + msg128827

components: + None
type: behavior
2011-02-19 03:54:55dmahncreate