added file to connect to phone through sockets