[SOLVED] Ubuntu laptop recognizes but does not connect to HTC wifi hotspot on my android phone
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu laptop recognizes but does not connect to HTC wifi hotspot on my android phone
Hello I have a laptop that has Ubuntu 12.04 LTS installed. For some odd reason I am unable to connect to my wireless HTC wifi hotspot eventhough my computer sees the network and has full bars but when I click on it to connect it doesnt establish a connection.
Here are the steps that I follow in order to try and connect:
1) I turn on my laptop
2) I turn on the HTC wifi hotspot on my Android cellphone (without any security settings)
3) I click on the wireless icon on my laptop and click on the HTC hotspot network
4) The icon shows the laptop trying to connect but after a few minutes no connection is established.
Try a manual connection so that you can see any error message:
Open a terminal and become root (sudo su)
Do steps 1) and 2) as prevously then:
3) type "ifconfig".
Among others you should see your wireless interface.
If not that means it is down. Then type e.g. "ifconfig <wireless interface name> up" to bring it up.
In my case wlan0 is the name of the wireless interface. If you you don't know its name and it doesn't show in the results of "ifconfig" (because it is down), the command "ifconfig -a" will tell you that name.
4) When the wireless interface is up type "iwlist <wireless interface name> scan".
Among others you should see your HTC wifi hotspot's network including its ESSID and it should show "Encryption key: off" as it has no security settings.
5) Then type "iwconfig <wireless interface name> essid <value read at step 5>
This shouls associate your wireless interface to your HTC wifi hotspot's network.
6) Type "dhcpcd wlan0" and hopefully the connection will be established.
In case Ubuntu doen't ship the "dhcpcd" app, use another DHCP client instead.
Let us know the outcome.
Last edited by Didier Spaier; 06-03-2012 at 12:55 PM.
I Found the solution it was quite simple when I followed didiers advice I noticed that with iwlist the HTC Portable Hotspot would not show up eventhough the desktop wireless icon detected the network. I went ahead and shortened the name from HTC Portable Hotspot on my phone to HTC as the Network name and I was able to connect to "HTC" without a problem and now I can use my t-mobile phone as a hotspot
I had a similar problem. I followed the steps given, my phone's hotspot name is sony. When I ran the ifconfig command, it didn't show any device named sony, When I ran ifconfig sony up, it gave error that no such device exists, while network manager was showing a network named sony. and ifconfig- a command also listed the names listed by ifconfig, no new name was there.
Can you please help me with this problem ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.