xuan32546 / IOS13-SimulateTouch

iOS Automation Framework iOS Touch Simulation Library
GNU General Public License v3.0
1.32k stars 285 forks source link

Running from remote socket the operation times out #45

Open subho007 opened 3 years ago

subho007 commented 3 years ago

I tried running the Python script remotely.

Trying to connect using

s = socket.socket()
s.connect("remoteip", 6000)

does connect, but the moment I pass in data to perform action or get device details. The action times out. I am using proper format as defined in format_socket_data but still, when I'm trying to receive a response s.recv(1024) the socket times out.

Checked with all the examples and command, it seems if you run from localhost and connect to socket it works, but if you run from outside it doesn't work.

subho007 commented 3 years ago

If you use iproxy to forward the port, it works though. But not if you want to control it via network, ex: over wifi network IP.