retrieve IP address after connection