Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunnel to listening port on host computer #10

Open
punto- opened this issue Jun 12, 2016 · 4 comments
Open

Tunnel to listening port on host computer #10

punto- opened this issue Jun 12, 2016 · 4 comments

Comments

@punto-
Copy link

punto- commented Jun 12, 2016

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!

@imkira
Copy link
Owner

imkira commented Jun 12, 2016

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?

@punto-
Copy link
Author

punto- commented Jun 13, 2016

                                                                                  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.

@sixman9
Copy link

sixman9 commented Jun 29, 2016

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 ' 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

@imkira
Copy link
Owner

imkira commented Jun 30, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants