Correct finding ip and port