Split ListenAndServe to get port number.