google / google/openhtf

Cant bind multicast socket on Windows

Open
#971 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
722
Forks
237
Avg merge
11h 31m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.