Skip to content

How to send data from Mac to iPhone using mobiledevice #12

@sauvikatinnofied

Description

@sauvikatinnofied

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions