Pass selected IP address from dialog back to main activity