removing port from hostUrl