Added parameter to startListening so the servers connection info could be returned to main.