Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 5 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.

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

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)

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

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.

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

Ok, go into the settings and change the wifi setting inside the chosen network from DHCP or whatever to Static. Copy all data except IP address. Take the first 3 sections of your assigned IP and copy them. Ex: IP is 143.23.0.198, copy over 143.23.0. then make up the last 3 didgets, making sure not to use 0,1, or 255. Those are specifically reserved for network tasks. then you should be good. it worked for me.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .