pointing to device ip and disconnecting socket