accepting hostname before port number
accepting hostname before port number