What is the fastest way to force my iPhone to obtain a new IP-address?

One way to get a new IP-address is to simply restart the iPhone, but that is rather slow. Is there any faster way to obtain a new IP-address?

I'm running iPhone OS 3.0 and I'm getting my Internet connectivity over GPRS.

link|improve this question

feedback

3 Answers

up vote 4 down vote accepted

The quickest way I have found to reset all the network connections (wifi, 3g/edge/gprs) is to go to settings and turn on "Airplane Mode" for a few seconds and then turn it off again. It will reset all network connections.

Settings-->Airplane Mode

I have found this also to help when my phone doesn't connect to 3g in a known 3g area.

link|improve this answer
@knorv This is RENEWING IP only, not getting a new IP-address! – deddebme Aug 26 '09 at 4:54
I didn't say it reset the IP, I just said it resets the connections. deddebme is correct in it being up to the carrier/server to give you a new ip. Sometimes you get a new one, sometimes you don't. – Troggy Aug 26 '09 at 5:28
feedback

Turn wireless off and on again? It may not actually get a new IP as it may just renew the lease.

I don't have a ipod/iphone so I don't know if there is a renew IP button, but i would take a look around any network settings, especially the page on wifi where it says what your current status / connection is (going from memory on my brothers one)

link|improve this answer
getting a new NAT ip depends on the DHCP server, not the client, in this case the iPhone. – deddebme Aug 24 '09 at 1:52
That's why I said it may just renew the lease and not get a new ip. – William Hilsum Aug 24 '09 at 9:19
feedback

There is definitely a "Renew Lease" button.

Go to Settings, Wi-Fi, click the blue arrow next to a network and you'll see it. You can also tell it to "forget" the current network it's on.

link|improve this answer
But OP was using GPRS, not wifi. – Jonik Aug 24 '09 at 4:37
feedback

Your Answer

 
or
required, but never shown

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