I was trying to send some data from Mac to iPhone. On Mac, I run the command
mobiledevice tunnel 8000 80
assuming all the incoming call to Mac (localhost:8000) will be forwarded to iPhone, any app running on iPhone and listening on localhost:80 can get the data. On iPhone I used Socket.IO-Client-Swift
I tried to open localhost:8000 on Safari and get the following output on console
Tunneling from local port 8000 to device port 80...
Got new client!
Device refused connection to port 80!
Got new client!
Device refused connection to port 80!
Got new client!
Device refused connection to port 80!
I never get a call back on my iPhone app. Can anyone help me how to use this tunneling facility and receive data to iPhone app from Mac?
Please find my iPhone test app here.
ClaraByteTestApp.zip
I was trying to send some data from Mac to iPhone. On Mac, I run the command
mobiledevice tunnel 8000 80assuming all the incoming call to Mac (
localhost:8000) will be forwarded to iPhone, any app running on iPhone and listening onlocalhost:80can get the data. On iPhone I used Socket.IO-Client-SwiftI tried to open
localhost:8000on Safari and get the following output on consoleI never get a call back on my iPhone app. Can anyone help me how to use this tunneling facility and receive data to iPhone app from Mac?
Please find my iPhone test app here.
ClaraByteTestApp.zip