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

Service discovery doesn't work without internet #62

Open
rolandjitsu opened this issue Oct 7, 2019 · 1 comment
Open

Service discovery doesn't work without internet #62

rolandjitsu opened this issue Oct 7, 2019 · 1 comment

Comments

@rolandjitsu
Copy link

I'm trying to run the zeroconf server to broadcast on a WiFi network that doesn't have internet, but it doesn't seem to work properly.

As soon as I broadcast on a network that has internet, I can discover the broadcasted server/service.

Is this a known issue?

@probonopd
Copy link

probonopd commented Nov 5, 2019

Even worse, when not connected to a network, I get:

2019/11/05 20:58:21 Could not determine host IP addresses
Error: process exited with code 1.

which means that my Go program cannot even be launched without internet.

The message seems to be coming from

zeroconf/server.go

Lines 68 to 70 in c2d1b41

if entry.AddrIPv4 == nil && entry.AddrIPv6 == nil {
return nil, fmt.Errorf("Could not determine host IP addresses")
}

This is on Ubuntu 18.04.2 LTS.

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

No branches or pull requests

2 participants