HomeStoreForumsWikiiPhone Native AppsiPhone AppsiPhone Apps modmyifone Downloadsmodmyifone Links






Go Back   ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

Opportunities at MMi | 1.1.4 Unlock|Jailbreak OS X / Win | $199 3G iPhone Releasing July 11
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2008, 09:49 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
SSH tunnel for Mail not working

I wrote some shell code for my iPhone which first port knocks to my server to open up the firewall, and then creates an SSH tunnel for imap and smtp so that I can check and send mail through my server.

All those steps seem to be working, and I can telnet to the local end of the imap tunnel from the iPhone to verify that the SSH tunnel is open. However, Mail doesn't work. It tells me that it cannot connect to localhost even though it is supposed to be connecting to the tunneled port.

Does anyone have any ideas why this isn't working?

Thanks.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 03-06-2008, 09:22 PM
What's Jailbreak?
 
Join Date: Mar 2008
Device + Firmware: iPhone 1.1.4
Operating System: Windows XP
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

how are you instructing mail.app to use the ssh tunnel that is in place?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 03-06-2008, 11:18 PM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

In the Mail preferences I set the imap settings to localhost (also tried 129.0.0.1) and the tunneled port (2143).
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 03-06-2008, 11:34 PM
What's Jailbreak?
 
Join Date: Mar 2008
Device + Firmware: iPhone 1.1.4
Operating System: Windows XP
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

did you try 127.0.0.1? I believe this is the correct loopback ip address of the localhost (Confirmed by pinging localhost in ssh session).
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 03-11-2008, 10:34 PM
What's Jailbreak?
 
Join Date: Aug 2007
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post

Did you figure this out? I have a similar issue trying to tunnel VNSea over SSH.
__________________
Nobody rhyme. I mean it.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 06-07-2008, 06:13 AM
What's Jailbreak?
 
Join Date: Jun 2008
Device + Firmware: iPhone
Operating System: Leopard
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Still no solution? I'm trying to do the same, but I get the same errors here.

Anyone?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7 (permalink)  
Old 06-07-2008, 09:05 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

I got it to work, but I had to kill MobileMail after opening the tunnel. Otherwise the change doesn't register.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8 (permalink)  
Old 06-11-2008, 09:46 AM
What's Jailbreak?
 
Join Date: Jun 2008
Device + Firmware: iPhone
Operating System: Leopard
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Hmm, yes I already figured this out myself, but I stil can't connect to the server...
How did you set up the tunnel? I'm ssh-ing from my desktop machine to my iphone and starting it from there.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 07:57 PM. Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly