go-getlistener The most straightforward way to get a TCP socket that can be socket activatable with systemd The example at cmd has all you need to know. Works for any kind of TCP based protocol.