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

server setup failing with bind: cannot assign requested address #26

Open
dustyroberts opened this issue Oct 20, 2022 · 3 comments
Open

Comments

@dustyroberts
Copy link

dustyroberts commented Oct 20, 2022

I'm running the following command to start the server

BORE_DOMAIN=my.domain BORE_HTTPADDR=xxx.xxx.xxx.xxx:80 BORE_SSHADDR=xxx.xxx.xxx.xxx:2200 ./bore-server_linux_arm

I receive the following error

`panic: listen tcp xxx.xxx.xxx.xxx:80: bind: cannot assign requested address

goroutine 1 [running]:
main.main()
/Users/jan/Dev/jkuri/bore/cmd/bore-server/main.go:29 +0x2201`

@jkuri
Copy link
Owner

jkuri commented Oct 20, 2022

Hi, either you don't have permissions to bind on port 80 or another service is already binded on that port.

@dustyroberts
Copy link
Author

The server will only be used by bore, how does one give permission for the service to bind to that port 80

I did a netstat and i do not see anything listening on port 80.

@jkuri
Copy link
Owner

jkuri commented Oct 20, 2022

Depends on your OS distro, try running it with root or sudo.

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