Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
iPhone / iPod Touch SDK | Development Discussionforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
Hi, The top of your script is fine. It should start with #!/bin/sh. The 'push' idea I mentioned is purely theoretical. Instead of starting autossh at boot time, I'd like...
09-07-2009, 12:33 AM #21
The top of your script is fine. It should start with #!/bin/sh.
The 'push' idea I mentioned is purely theoretical. Instead of starting autossh at boot time, I'd like to start it on demand. I'd want to send a message to the phone using APN (maybe via Prowl?), and catch the event on the phone (using GRiP?) to start autossh.
Please look up any terms you're not familar with.
Regarding the change of IP, you are right, I'm seeing the same behaviour. There is a period of time where the tunnel is still up, but on the wrong interface. It is possible to send a signal to autossh (via killall) to tell it to renew the connection manually, but that is not desirable.
If the tunnel is started from the data side (Edge/3G), then I believe it's a little better. The tunnel still doesn't switch to wifi, but at least it doesn't go down.
09-08-2009, 01:40 PM #22
I coundt say it any better, i wish i had the ability to explain a situation (the IP/3G/WIfi glitch) as well as yourself... by all means, take over ;P...
i was just upset u didnt reference my nickname in any way, if u really have been using this for a long time, and u know other people who have, thats great...
but as far as i knew, No one (even on android) didnt know how to run a server accessible by public (specific servers only obv) over 3G on the iPhone/other phones....
but u obviously deserve major cutos for realizing what i did =)
09-23-2009, 05:09 PM #23
If someone with the know-how would be willing to automate these tasks via a Cydia app for the rest of us tards that would be awesome.
Related question: is there also a way to trigger the iphone's native VPN client at startup and have it auto reconnect?
[EDIT] Tried fooling around with com.apple.raccoon.plist but no go. It looks like there are a couple of options in there for VPN auto-starting and keeping-alive that are set to false. Switching to 'true' didn't produce any noticeable change on restart. Ok ending edit, sorry for momentary hijack.[/EDIT]
Last edited by ddarko777; 09-24-2009 at 02:03 AM. Reason: more info
09-23-2009, 09:31 PM #24
I love the idea of this.
09-24-2009, 08:54 PM #25veency working over 3G on demand!
FYI, I got veency working over 3G on demand =)
It doesn't involve using VPN but that did set me on the right track to discovering what I needed to do... essentially, overcoming the reason why veency doesn't work over 3G in the first place. Get a public IP!
Full details of my experience posted here:
Veency over 3G/Edge working w/ iDNS
01-24-2010, 06:27 PM #26
ok i get connection refused any help?
03-08-2010, 07:38 PM #27quick question
can the ssh server be run on another pc connected to the same network as the pc i am trying to connect to?
05-22-2012, 06:41 PM #28
Last edited by egregious; 05-22-2012 at 11:33 PM.
06-05-2012, 07:27 PM #29iPhone app to controll autossh tunnels
1) Get your data ip address from SBSettings or 'ifconfig' command on iPhone
2) Do this command:
route add yourHost your.data.ip.address
I am going to write an iPhone app to automate all of this stuff and would welcome the assistance of folks with some iOS programming experience. If interested, or if you have feature requests, please drop me a line. Basic features I'm thinking of include:
* SBSettings toggle
* Add/remove tunnels individually
* Allow initiation at phone startup
* Include a miniature website via lighttpd with features TBD...
Last edited by egregious; 06-05-2012 at 07:40 PM.
06-22-2012, 11:20 AM #30iphone screen
my iphone is connected with a switch and switch is connected to a lan...im trying to access the iphone screen with my computer which is connected in the same network but with wifi...so how to do that...
how to do port forwarding on it so that i can get the screen...like adb command in andorid
06-22-2012, 01:49 PM #31
Since your phone and your 'computer' are on the same network, you should be able to point your VNC viewer to your iPhone's wifi ip address. Don't know that? Look in SBSettings. Don't know about that? I can't help if that is the case...
06-22-2012, 03:28 PM #32
06-22-2012, 03:43 PM #33
Last edited by egregious; 06-23-2012 at 02:06 PM. Reason: Removed
06-22-2012, 03:52 PM #34
Last edited by egregious; 06-23-2012 at 02:07 PM.
06-23-2012, 12:48 PM #35
A) If your phone is on wifi:you don't need to map a port -- you can go direct.B) If your phone is not on wifi, but is on data/3g:You can open a port as follows: From mobileTerminal on your iPhone, do: ssh -R *:59000:localhost:5900 username@yourComputerC) If your iPhone is using neither wifi or data/3g:
...where 59000 = the local port number you want to use, username = user name on your computer and yourComputer = your computer's external ip address or domain name. This assumes that you have configured your router to direct port 22 (ssh) to your computer. This is very way off-topic, so if you need help with that, private message me and I can walk you through it. After all of that, simply point your VNC viewer to localhost:59000 and you're good to go.The only way to connect would be via USB (or bluetooth, but I can't help you there). There are basic instructions for this here. In your case, you would run tcprelay.py -t 5900:59000 again, where 59000 is the local port number you want to use. You can then point VNC viewer to localhost:59000.
Does that cover it?
08-05-2012, 03:24 AM #36
edit - sorry please delete