Print out ip before and after connecting to server