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

Can't bind to specific addresses #69

Open
dessalines opened this issue Nov 22, 2018 · 2 comments
Open

Can't bind to specific addresses #69

dessalines opened this issue Nov 22, 2018 · 2 comments

Comments

@dessalines
Copy link

panic: listen udp4 192.168.50.68:6881: bind: cannot assign requested address

goroutine 1 [running]:
main.(*torsniff).run(0xc4200761e0)
        /Users/iTorm/go/src/github.com/fanpei91/torsniff/torsniff.go:170 +0x189
main.main.func1(0xc42009c000, 0xc420076190, 0x0, 0x5, 0x0, 0x0)
        /Users/iTorm/go/src/github.com/fanpei91/torsniff/torsniff.go:278 +0x304
github.com/fanpei91/torsniff/vendor/github.com/spf13/cobra.(*Command).execute(0xc42009c000, 0xc42007a010, 0x5, 0x5, 0xc42009c000, 0xc42007a010)
        /Users/iTorm/go/src/github.com/fanpei91/torsniff/vendor/github.com/spf13/cobra/command.go:762 +0x475
github.com/fanpei91/torsniff/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42009c000, 0x61877d, 0x13, 0xc420082460)
        /Users/iTorm/go/src/github.com/fanpei91/torsniff/vendor/github.com/spf13/cobra/command.go:852 +0x334
github.com/fanpei91/torsniff/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42009c000, 0xc420072238, 0x61602c)
        /Users/iTorm/go/src/github.com/fanpei91/torsniff/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
        /Users/iTorm/go/src/github.com/fanpei91/torsniff/torsniff.go:289 +0x5bf

@fanpei91
Copy link
Owner

This problem occurs when your host has no the NIC that refers to 192.168.50.68.

@dessalines
Copy link
Author

I'm using a VPN where my internal NIC doesn't know what my actual IP is anyway.

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