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

Doesn't work in Windows 10 browser #108

Open
creatormir opened this issue Oct 16, 2023 · 0 comments
Open

Doesn't work in Windows 10 browser #108

creatormir opened this issue Oct 16, 2023 · 0 comments

Comments

@creatormir
Copy link

creatormir commented Oct 16, 2023

Looks like the project has been abandoned?

On Windows10 I tried this for use in the browser, but it didn't work. What am I doing wrong?

// Setup our service export
host, _ := os.Hostname()
fmt.Printf("Hostname at %s\n", host)
info := []string{"My awesome service"}
ip := net.ParseIP("127.0.0.1")
service, err2 := mdns.NewMDNSService(host, "_http._tcp.", "", "server.", 8089, []net.IP{ip}, info)
// fmt.Fprintf(w, "NewMDNSService err: %v", err2)
fmt.Println(err2)
// Create the mDNS server, defer shutdown
server, err2 := mdns.NewServer(&mdns.Config{Zone: service})
// fmt.Fprintf(w, "NewMDNSService err: %v", err2)
fmt.Println(err2)

// defer server.Shutdown()
_ = server
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

1 participant