Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant bind multicast socket on Windows #971

Open
ashesman opened this issue Nov 24, 2020 · 3 comments · May be fixed by #1134
Open

Cant bind multicast socket on Windows #971

ashesman opened this issue Nov 24, 2020 · 3 comments · May be fixed by #1134

Comments

@ashesman
Copy link

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

@ashesman
Copy link
Author

Looks like this issue has a possible solution:JamesMTSloan@0f3ab6a

@honglei
Copy link

honglei commented Jun 14, 2022

@ashesman Thanks!

@d-griet d-griet linked a pull request Jan 19, 2024 that will close this issue
@dieser-niko
Copy link

It looks like Google doesn't seem to care about this sort of thing. However, I still want to use the official library.
For that reason I'd recommend just changing the configuration.
My code is based on the frontend_example.py file:

...

def main():
    CONF.load(station_server_port='4444',
              station_discovery_address="")  # added this line
    with station_server.StationServer() as server:
        web_launcher.launch('http://localhost:4444')
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants