jkuri/bore

server setup failing with bind: cannot assign requested address

Opened this issue · 3 comments

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 commented

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

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 commented

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