Adding ip to connect and disconnect.