extract ip port to variables