1

The service starts and attemps to listen to port # 443, I get errno=99 which is EADDRNOTAVAIL and std::strerror(errno) reports "Cannot assign requested address".

If I run sudo getcap /path/to/binary I get this: /usr/local/binary_file = cap_net_bind_service+ep

This seems to mean that it has the capability, yet I can not bind to the port, anyone can help me with this issue?

Bamaco
  • 131

1 Answers1

1

Turns out I specified the wrong ipaddress in my bind, that came from an environment variable passed at compilation time. Setcap works great.

Bamaco
  • 131