Skip to content

Cant bind multicast socket on Windows #971

@ashesman

Description

@ashesman

When using frontend_example.py on Windows 10, I am not sure why but an exception is thrown on line 108 of multicast.py when trying to bind to 239.1.1.1 on port 10000.

self._sock.bind((self.address, self.port))

The exception information is below:

(env) D:\openhtf> cd d:\openhtf && cmd /C "d:\openhtf\env\Scripts\python.exe c:\Users\Ashley.vscode\extensions\ms-python.python-2020.11.371526539\pythonFiles\lib\python\debugpy\launcher 60785 -- d:\openhtf\examples\frontend_example.py "
Exception in thread Thread-7:
Traceback (most recent call last):
File "c:\users\ashley\appdata\local\programs\python\python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "d:\openhtf\openhtf\util\multicast.py", line 108, in run
self._sock.bind((self.address, self.port))
OSError: [WinError 10049] The requested address is not valid in its context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions