Attached is a patch that adds a customisation option to force the Emacs server to listen on a particular port. This makes it simple to set up a firewall rule or port forwarding to allow incoming connections from a remote emacsclient. -- Peter Oliver