mobiledevice icon indicating copy to clipboard operation
mobiledevice copied to clipboard

Tunnel to listening port on host computer

Open punto- opened this issue 9 years ago • 4 comments
trafficstars

Hi, Does this work when the listening port is in the host computer? I have a file server running on the computer, and I want the phone to connect to it and use those files (instead of the local filesystem), so I start my file server on port 6010, and run "mobiledevice tunnel 6010 6010", and then direct the client (running on the phone) to localhost:6010. But it seems like the tunnel function is listening for connections coming from the computer, not the phone. Is it possible to do a "reverse tunnel"?

Thanks!

punto- avatar Jun 12 '16 05:06 punto-

I haven't tried for the src_host, but for the dst_port, yes, technically it should be possible. Instead of creating a server, I would just need to accept connections from the device (like I already do) on src_port, and connect to dst_port on the host computer.

Would you have any time to work on this?

imkira avatar Jun 12 '16 05:06 imkira

                                                                                  Not right away :( I installed from brew on osx so I'm not set up to compile, I can try during the week                                                                                                                                                                                                                                                                                                                                        Sent from my BlackBerry 10 smartphone.                                                                                                                                                                                                                From: Mário FreitasSent: Sunday, June 12, 2016 2:22 AMTo: imkira/mobiledeviceReply To: imkira/mobiledeviceCc: punto-; AuthorSubject: Re: [imkira/mobiledevice] Tunnel to listening port on host computer (#10)I haven't tried for the src_host, but for the dst_port, yes, technically it should be possible.

Instead of creating a server, I would just need to accept connections from the device (like I already do) on src_port, and at the moment connect to dst_port on the host computer.

Would you have any time to work on this?

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

punto- avatar Jun 13 '16 02:06 punto-

Would any of your above thread but useful in tunnelling ALL IP traffic out of an IOS device, as is the case for the 'rvictl -s <UDID>' command (Xcode tools)?

I'd be interested in programatically tethering the IOS device to my [mac] desktop, so I could share the desktop's internet connection.

Thanks

sixman9 avatar Jun 29 '16 17:06 sixman9

@sixman9 I am not saying it is not possible, but that would require more information on reverse engineering which I currently do not possess.

imkira avatar Jun 30 '16 02:06 imkira