Pass optional IP address to server.listen
[fix dist] Remove leaked `connectedArgs` global. Prefer inline functions to assigned functions. Style changes.