Friday, December 4, 2009

UBC wireless (ubc, ubcsecure) on HTC dream (android) workaround

So, wireless doesn't work on your new smartphone. Your friends with iphones are laughing their asses off. Apple fanboys....

Workaround: (btw... its a workaround not a fix...cuz its a hassle... and it kinda sucks...but its better then nothing...so don't complain to me...go complain to UBC)

Workaround for connecting HTC Magic to ubc wireless running android. (currently running myHero 2.0.5).

Basically the problem has been narrowed down to the DHCP server not assigning the device a proper IP address. The workaround involves setting a static ip address (or assigning it yourself).

Requirements:
Android Phone
Connected computer (via wireless) [NOTE: if comp is connected to UBC, connect to UBC on the phone. If connected to UBCSECURE, connect to UBCSECURE on phone.)


Step 1: Turn wifi off

Step 2: Get info
You will need the following:
Your computer IP - to guesstimate a valid IP address
Gateway address
Subnet mask (Netmask)
DNS server(s)

On Windows:
open up a command prompt (Type cmd into run or search under the start menu)
Type in ipconfig -all
Under Wireless Lan adapter:
IPv4 Address = Your IP
Subnet Mask = Netmask
Default Gateway = Gateway
DNS servers = DNS servers (use any 2)
On Linux:
To get the DNS server(s) --> cat /etc/resolv.conf
To get the Gateway --> route -n
To get IP + Netmask --> ifconfig

Step 3: Assign IP
To set a static IP address just navigate to the the wireless settings. Then hit the menu key and click advanced. Scroll down to the static IP
Fill in the info using the gathered info from Step 2. CHANGE the IP address by a digit or 2. (We want a different IP for our android device).

Step 4: Make sacrifice
Black coffee with no sugar is acceptable. Goats and moose sacrifices are too. Roadkill may work.

Step 5: Connect
Turn on your wifi and try connecting to UBC or UBCSECURE (depending on which network you got your info from). After connection (this almost always works) open up your browser and see if you can access the internet. If you can you're done. If you can't, simply turn off wifi and change the static IP a bit. Then turn on and try again.

Notes:
This worked for me in different areas of campus on both the UBC and UBCSECURE networks. It's a really crappy workaround because you basically need another connected device. Also, static IP assignment shouldn't technically work on the UBC wireless (as confirmed by the help desk). This workaround basically confirms that the problem is with the IP assignment and DHCP (either on the android or UBC end). Also, this should technically work on any ROM. And finally, make sure you disable the static IP when connecting to other networks...

10 comments:

Anonymous said...

Thanks,
Solved my problem, now I am much happier with my device.

Anonymous said...

finally... a solution to my long time problem!
thanks a lot
just wondering... do you have to "hack" a new ip address for each connection?
or will the old ip address work for another time?

myd said...

Depends...I've found if I'm in the same section and disconnect for less then 10 min it works fine...otherwise you gotta go again... Hopefully this'll be fixed in the 2.1 update (supposedly due from HTC/Rogers around mid 2010)

Charles said...

Just to report, my Nexus One running Android 2.1 (shipped to WA and brought to Vancouver this weekend) is fine with connecting to UBC unsecured - grabs an IP and then I can log in. Browser won't prompt to remember my CWL/password unfortunately.

Also when I connected from one building and then walked to another, I couldn't connect to any further web pages until I stop/started wifi and logged back in.

Still working on ubcsecure... it prompts me for four things and two of them are certificates. I don't have any certificates yet, need to figure out how to get them on the phone.

I may well have the first Nexus One on campus! :)

Charles said...

Waitwait, spoke too soon!

I leave the certificates N/A. If I scroll down in the login window for ubcsecure, there is a username/password field. Duh, didn't see em there before. It works!

So it's final: Android 2.1 works on ubcsecure and eduroam. This is progress.

Anonymous said...

If anyone finds this helpful,

I am running Android 1.6 on vodafone Magic, and I am able to connect to UBC wifi ONLY when I'm at libraries, Irving or Koerner. Strange I know, but once I am connected, I am able to reconnect anywhere I want.

Anonymous said...

what do you put in the DNS servers = DNS servers (use any 2)..thanks

myd said...

http://www.cyberciti.biz/faq/how-to-find-out-what-my-dns-servers-address-is/

Try this

Anonymous said...

it didn't work for me!
could it be because my phone is still running 1.6 on android?

Anonymous said...

I just bought an LG Optimus (Android 1.6)and it works fine wherever I go in UBC.
I just tried this
http://www.it.ubc.ca/internet/wireless/wpa/wirelesswpaother.html
and it worked fine.

Post a Comment