Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

When the iPhone (4) goes to sleep, the VPN will disconnect. Is there any way to disable this behavior as it's sometimes a bit annoying.

I am jailbroken, and the server I'm connecting to is Windows Server 2008 R2 which I can edit settings on.

share|improve this question
add comment

5 Answers

The VPN will disconnect because your WiFi disconnects.

Therefore you would have to...

  • either reconnect your VPN connection when on 3G (How?)
  • or enable your iPhone to keep connected to WiFi (requires jailbreak)

To keep WiFi on in sleep mode you need to install KeepAwake via Cydia.

See this step-by-step guide.

share|improve this answer
    
I don't use WiFi though, it has got a constant 3G Conection –  e__ Jan 22 '12 at 18:37
add comment

I would expect that sleeping an iPhone and staying connected to the network are incompatible goals. If you don't want to drop the VPN connection, you need to keep the device awake.

However, I found a discussion on apple.com that states that plugged-in devices are able to maintain network connections while in sleep mode.

share|improve this answer
add comment

I did 2 things and now the VPN does not disconnect even while switching from wifi to 3G.

  1. Install Cisco Anyconnect to connect to VPN network.
  2. Install KeepAwake(from cydia) --Thanks, gentmatt

Now it's all fine, i can work from anywhere on my 3GS and VPN remains connected while on the move also.

share|improve this answer
add comment

I turns on a music at background with volume turned off .. Put it on repeat, my brother turn auto lock to off on his iPod . To keep the VPN alive , and VPN will not disconnect ... But may be there's a cydia tweak for tha

share|improve this answer
add comment

http://www.cultofmac.com/225244/apple-decides-not-to-kill-always-on-vpn-for-ios-devices/

hopefully this will help you.

share|improve this answer
    
Please do not only add link-answers without details as the links might die. –  Rob Apr 1 at 12:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.