This Android Life » Android News » Setting static IP address for wi-fi connection on HTC Hero
Home » Guides

Setting static IP address for wi-fi connection on HTC Hero

3 September 2009 13 Comments

I have a slightly unusual wifi setup at home where I have a wireless access point that doesn’t give out IP addresses via DHCP, so any devices that attach to my wireless network need to be have static IP addressing set. Because of this, one of the first things I had to work out on my HTC Hero was how to specify static IP settings. After very little digging through the settings, I found the answer. These are the steps you need to take to specify a static IP:-

  • Hit the hard menu button on your phone and then choose Settings
  • From there, browse to the Wireless controls section and then choose Wi-Fi Settings
  • Whilst in the Wi-Fi Settings section, push the hard menu button again and select Advanced
  • Press Use static IP to put a check in the box and then enter the network settings as per your own network (if you’re not sure what your settings are, (and assuming you’re using Windows) open a command prompt by clicking Start, then Run and typing in cmd and hitting enter and then typing the line ipconfig -all and hitting enter, the relevant details should be listed there. -Just make sure you use a different number for IP address on your phone than is shown on your PC!)

Now, one thing to bear in mind here is; you won’t be able to connect to public wireless hotspots with a Static IP set as they will all use DHCP, and the chances of you specifying static IP settings that work for both your home network and any given public hotspot are pretty slim. There doesn’t seem to be any way of using one IP profile for one wireless network and a different IP profile for another, but if you uncheck the Static IP section, you’ll be able to pick up an IP from DHCP and, happily, your previously set Static IP settings will stick for when you revert back. This is a bit kludgy for regular use, so I’m hunting around for an app that will manage wi-fi profiles. If and when I find one, I’ll let you know. Watch this space…

**UPDATE- I found a great app called WiFi Static that automatically switches between static and dynamic addressing dependent on the wireless network you connect to. It works perfectly for me.

**If you found this article useful, please consider voting for us at the Wirefly 2010 Best Blog Awards here.**
Follow ThisAndroidLife on Twitter

13 Comments »

  • toastedbagel said:

    Thanks! Can't wait for your app recommendation!

  • Anonymous said:

    Any luck with that app?

  • mrussell77 said:

    No luck so far. The only thing I can think of would be for a custom add-on for the app called Locale. Locale can turn on and off phone settings based on specific conditions, such as the current time or your current location, and you can create custom actions to be taken on your phone, but it's a bit beyond my meagre coding skills for the moment!

  • Anonymous said:

    Anyone found a plugin for Locale?

  • mrussell77 said:

    I've still not come across one unfortunately. I've gotten used to switching from static to non-static IP addressing to be honest.

  • Anonymous said:

    At least it remembers the IP address etc. Seems only to be at work I have a proble, connecting to mainly Linksys Wireless Access Points.

  • Anonymous said:

    try wifi static

  • mrussell77 said:

    WiFi Static? This looks like it'll do the job! Thanks for letting us know about that. I'll check it out today and let everyone know how it works.

  • Anonymous said:

    I use it now on my htc hero in combination with "wifi scanner" and it does a great job.

  • Anonymous said:

    Works great for me, thanks a lot guys
    Ronald

  • Monk said:

    Hi,

    I have wirtten an app that does exactly this. It simply enables you to create and manage wifi profiles withthe touch of a button. its on the market place and called IP Manager and its free.

  • Fjappe said:

    Hi. Thx for this article – it solved my connection problems on my home WiFi :)

  • SamTan2988 said:

    I had to say this is 100% useful.
    I just got my first Andriod phone (HTC Desire) 2 days ago, and still in progress explore the features and setting.
    This is very useful to me as during home, I am connecting to internet via my WiFi network using a static IP.

    Thank you so much

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.