port resolve impl