When using -o server-name=myhost.mydomain.com, it would still only bind to myhost.local. I dug into the code and see that it's actually looking for server-hostname not server-name as is documented. When I switched to -o server-hostname=myhost.mydomain.com it worked as expected.
Running a Server
The “server” sub-command runs a standalone spooler. The following options control the server operation:
“-o listen-name=HOSTNAME”: Sets the network hostname to resolve for listen addresses - “*” for the wildcard addresses.
“-o server-name=HOSTNAME”: Sets the network hostname to advertise.
When using
-o server-name=myhost.mydomain.com
, it would still only bind tomyhost.local
. I dug into the code and see that it's actually looking forserver-hostname
notserver-name
as is documented. When I switched to-o server-hostname=myhost.mydomain.com
it worked as expected.Documentation: https://www.msweet.org/lprint/lprint.html
Code: https://github.com/michaelrsweet/lprint/blob/master/lprint.c#L459-L460