Added ability to set "0" as listening port. Exported local_ip and local_port to the client.