I've been messing around with my bionic, and have successfully compiled my own dropbear SSH daemon using a few different guides I found around the internet. Now I'd like to ssh to my phone, but I've been having trouble connecting it with another device (wirelessly, without an actual access point).
I tried creating an ad-hoc network on my laptop and joining from my Bionic, but it tried to get an IP address and failed (obviously) then disconnected. I edited /system/etc/wifi/tiwlan.ini, and set WiFiAdhoc to 1. After rebooting and "joining network" again, I saw two ad-hoc networks of the same name from my laptop.
At this point, turned wireless off on laptop, waited, then turned back on and looked for networks. I saw the one ad-hoc (presumably created by droid), and joined it.
I then used ifconfig on the bionic to set up a network address and netmask, and configured the computer to match (192.168.5.0/24). However, I couldn't even ping between the devices at this point. Are there any tricks to ad-hoc wifi, or any suggestions for what to try?
P.S. The WifiAdHoc idea came from stackoverflow: stackoverflow dot com/questions/1932150/can-android-do-peer-to-peer-ad-hoc-networking/1932193#1932193
(can't post links yet)
P.P.S. Also using dot11DesiredSSID and dot11DesiredBSSType didn't help
Related
I have a rooted N1 with cyanogen 5.0.4.1 on it.
I'm studying abroad this semester, and the university I'm at seems to have done everything they could to prevent me from connecting my phone to the internet on their network.
There is a wireless network, but it doesn't reach my room, and there's a proxy; I haven't been able to get any of the various proxy apps to work with it, at all. On a somewhat related note, since moving to cyanogen I'm not able to connect to that network anymore (wpa enterprise, tls/pap/user+pass). No real loss, since it didn't work as I couldn't get the proxy going.
The rooms have ethernet, with a static IP and mac filtering, and of course the same proxy. In addition, on the wired network in the rooms you have to connect to a vpn in order get anything other than the school's intranet
With cyanogen's rom, I have been able to connect my phone to my computer's ad-hoc network by giving it the parameters (IP, gateway, netmask, dns), that were provided to me, but I can't download anything. My only guess as to why that's not working is their static IP/mac filtering combo is not playing nicely.
I haven't ever delved very deeply into networking type stuff such as proxies, ssh tunnels, etc, so these two ideas of mine could be completely unworkable, but what I've been able to come up with is:
1. Is there a way to have my laptop keep handling all the proxy/ip/vpn nonsense, and just route http data to and from my phone? I've never dealt with ssh or anything of that sort, but I run linux so it should be pretty trivial to get it set up on the laptop's side of the equation.
2. Failing that, I'm allowed to have 3 devices with 3 different mac addresses, each of which is given a separate IP address, so I give the people in charge of the network the mac address for my phone and get an IP address for it. Then, connect to my laptop's ad-hoc network, which is on IP #1, and go to the advanced wifi settings on my N1 and set up a static IP with IP #2. Does that work, at all? This of course doesn't account for the vpn at all, but if it does in fact work I'd then move on to that.
What a ****ing brain-buster. Goodluck!
As an update, I can use cyanogen's included tethering ability, in conjunction with ConnectBot, to ssh from my phone to my computer (got that working after a bit of work, and learned something new). However, when I try to set up port forwarding in ConnectBot, it doesn't work; I don't know which ones to forward, whether to choose local or remote, and if I try to forward something below 1024 it gives me an error because of that. Does anybody know what ports I need to forward, and how to do that properly with ConnectBot?
I got a new Samsung Galaxy tab recently. In the first place, it could not see the adhoc network shared from my laptop. (Another device can connect to it.)
Then, I did lots of research and rooted it then changed wpa_supplicant file as discussed in the forum.
Now, I can see my adhoc network. BUT, when I tap it and try to connect to it, it fails on "Authenticating XXXX(adhoc)..." and Disconnected.
Can anybody help? The adhoc is really important to me, as I do not have a big capped Mobile Internet Plan. Without the network, the Samsung Galaxy Tab turns to a big size PSP.
Many thanks in advance.
BTW, it works on normal wireless network without any issue (At home).
It's your first post, so I'll cut you a little slack, but next time, use search first before asking!
If you had, you'd have found threads like this which should help you.
Remember - search is your friend!
Regards,
Dave
Thanks for your quick response.
I have searched and tried for nearly 2 weeks and followed the exact percedures mentioned in that thread, but no luck.
I believe it is a seperate issue and may need a little bit more tweak to solve it.
Cheers,
GA
My apologies! I didn't read your post fully, and didn't notice that you'd already tried wpa_supplicant.
Are you running Windows 7? If so, I suggest trying Connectify or Virtual Router which turns your laptop into an infrastructure hotspot.
Regards,
Dave
Yes, I am running WIN7 and I have tried to used both Connectify and Virtual Router. But, I have an "OLD" (2 years) Lenovo T61 and the wifi card (Intel 4695AGN) is not supported by ether Connectify or Virtual Router. (Please see following message.)
C:\Windows\system32>netsh wlan set hostednetwork mode=allow ssid=vodafone_one key=Galaxy_P1000!
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
C:\Windows\system32>netsh wlan start hostednetwork
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
C:\Windows\system32>
I have nearly the same Problem:
- Windows 7 (64 bit) on my Laptop (Dell Studio XPS 1640) and installed Connetify.
- Connetctify says it is not able to run as AccessPoint but AdHoc works fine, i.e. with my phone (Experia X1).
- My Galaxy Tab can see Connectify (after applyingthe suggested wpa_supplicant) but hungs with something like “Getting IP-Adress from…” and then switches the Connectify-Link to “Disabled”.
I tried it also with disabled Firewall, just to be sure: same result. Has someone a nice idea to this? Would really make me happy!
Cheers,
Thomas
please post your exact model of the galaxy tab and the software version
chroma5632 said:
My Galaxy Tab can see Connectify (after applyingthe suggested wpa_supplicant) but hungs with something like “Getting IP-Adress from…” and then switches the Connectify-Link to “Disabled”.
Click to expand...
Click to collapse
The following thread contains a discussion about adhoc wifi tethering.
http://forum.xda-developers.com/showthread.php?t=932082&page=48
Try using Wifi Analyzer to see if the channel you are using is congested. I too was having problems getting my Galaxy Tab to connect to an adhoc wifi connection, but was able to successfully connect after changing the default channel 11 to a less congested channel.
Thanks for your input! The Glaxay is GT-P1000 FROYO.XWJJ3.
Have tried with different channels. Default was 1. Changed to 3, than even the Experia X1 did no more work. With channel 5,6 and 7 the Experia works, but the Galaxy does not: tries to get IP Adress and then disables the Connectify-Link.
Cheers
Thomas
Hi, I had the same problem with my ace,but i could manage to connect to my ad-hoc network. but the problem now is i only connect, i still cant browse in internet with my phone,
what i did was to make an ad-hoc network-->turned internet sharing on.
and then in my phone-->wireless network-->wireless setting-->advance-->(then i have putted a tick for use static IP and then putted the Ipv4 address in gateway and for IP address the same thing as Gateway but with the change at the end of it and 255.255.255.0 for netmask and 8.8.8.8 for DNS1 and 8.8.4.4 for DNS2 and saved it,so i could connect to ad-hoc but still no internet connection
Hi,
I am having a problem using WM6.5 (EnergyRom Titanium) together with the Wifi Router in the Rom or WMWifiRouter for providing internet access to my MID816 Android Froyo Tablet.
First of all and for completeness, I had to make a little change to the WPA_supplicant.conf file in the tablet:
Code:
Ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi
eapol_version=2
update_config=1
[B]ap_scan=2[/B]
network={
ssid="droidhoc"
scan_ssid=1
key_mgmt=NONE
group=WEP104
auth_alg=OPEN SHARED
[B]priority=99[/B]
mode=1
}
The bold lines are the ones I needed to change.
After that I tried using the wifi Router and WMWifirouter with wep enabled (and the extra line in wpa_supplicant.conf), but that didn't seem to work, for some reason my tablet wouldn't connect.
Next I tried without wep and well it did connect (both WMWifiRouter and the tablet confirmed this)... but I couldn't access the internet for some reason.
I tried the same using the TP and my laptop and my laptop didn't have any problem connecting to the internet using wmwifirouter on the TP.
Next I tried installing XDANDROID on the TP and after some initial problems I got Gingerbread running on it.
I installed Barnacle Wifi Tether on the TP (the build in only gave errors), got it running without wep and connected to it with my tablet on the first try.
It even gave internet access to my tablet.
SUCCESS... well not completely.
XDANDROID, although a wonderfull development, seriously drains the battery of my TP (RAPH100)... so it is not the best alternative when traveling. It gives a temporary solution, but still.
So, after all this, I'm thinking, if xdandroid can connect and pass through the internet to my tablet, WM6.5 should be able to also.
Just, I have no idea what the big difference is here.
So, if anyone could help me figure out how to get wmwifirouter working with my tablet, that would be incredibly helpfull. Maybe someone does know what the big difference is between using wmwifirouter and barnacle wifi tether ...
TIA
Probably best to ask that question (since it is related to a specific project) HERE
I see, but the thing is, that I don't have a problem when using xdandroid...
The only thing that is giving met trouble is wmwifirouter :s
The reason it won't connect is the same reason why my wife's tablet or my PSP won't either. They connect in infrastructure mode only. The wifi router creates an adhoc connection. I hope this helps. I really, really wanted my PSP to be able to use the wifi router.
It's solved!
I stumbled across this post today: http://www.slatedroid.com/topic/385...-to-look-here/page__view__findpost__p__125320
the adhoc switching app doesn't work, but the line I have to use in the terminal does
This is the line I have to use in the terminal to be able to connect to the internet:
Code:
setprop net.dns1 192.168.3.1
Now, If only I could get that modeswitching program to work or even better use simple scripts to copy the correct wpa_supplicant.conf file and immediatly execute the above line...
And this (http://forum.xda-developers.com/showthread.php?t=486486) did the trick
I made 2 scripts:
adhoc
Code:
cat /data/misc/wifi/wpa_supplicant.conf.adhoc > /data/misc/wifi/wpa_supplicant.conf
setprop net.dns1 192.168.3.1
This one I have to use before turning on wifi and after the connection is made (could also have made 2 scripts but this works just as well
And returning to the normal connection mode
normal
Code:
cat /data/misc/wifi/wpa_supplicant.conf.normal > /data/misc/wifi/wpa_supplicant.conf
Hey guys. I am having a crazy problem. It all started about 4 weeks ago my phone started having authentication issues with my xfinity Router/Wifi unit (Arris TC862)... I figured at the time it was having problems with the encryption so I changed it from WPA/WPA2-PSK (AES/TKIP) to WPA2-PSK (TKIP).
That worked and it allowed to phone to connect to the wifi... But now I cannot contact the internet from the phone... I know it isn't the wifi module itself because it works fine on every other wifi that I try it on, subway and my work.
I am using ViperRom One so I have the terminal emulator... I am able to ping my default gateway of 192.168.1.1 which is the same router that I connect to via wifi, I am able to ping from my computer to my phone... So it appears that I am on the local LAN
I cannot ping google via name or by ip address so that rules out a DNS issue
I tried using a static ip address as well... 192.168.1.50 which I am sure my dhcp hasn't handed out
No other wireless device in the house has this problem
I guess what I am looking for is help if you know what the problem may be, but more specifically troubleshooting that I can do on the phone I am a network engineer but I know little about linux, and what the capabilities of the virtual terminal are... If I was at work I would just span (mirror) my cisco port and then hook up wireshark to see what is happening to the packets but I don't think this router is that sophisticated.
I would lean towards this being a comcast issue but the fact that this all started off with the authentication issue makes me think that it is a problem with the phone...
One thing of note, the router itself recognizes all my other devices as being android or a kindle but for my phone it says "UNKNOWN" which is basically just the common name, it recognizes the MAC and that is all that should matter... is there a way to change your hostname on the phone? I noticed there is no Ifconfig command in the terminal but I am not sure if that is where you would change that anyhow.
Well I figured out the problem... Stupid Xfinity
If anyone else gets this problem log in to your xfinity router; Under Parental Control - Turn off Managed Services - I do not know why this was blocking my phone but it definitely was
Apparently this blocks other devices too like blu ray players with internet ability
http://forums.comcast.com/t5/Home-N...ay-Player-to-my-wireless-network/td-p/1083175
Thank you, thank you! Comcast idiots. Who would think that by default they wouldn't allow devices to connect? The weird thing is my HTC One worked for about three weeks on wifi and then magically didn't. Whatever, now fixed. thanks.
I use the ComicRack PC and Android programs to sync comic files to my tablet on my home network. This generally works okay but occasionally the tablet will not connect to the server.
When this occurs, I have tried pinging from my tablet to the PC (using various android network tools like Fing) and the pings fail. In fact, when this happens I can't ping ANYTHING from my tablet, not even localhost. But my network connection is active because I can still get to both my local network files (using ES File Explorer) and the internet just fine.
I have tried resetting my wifi connections, setting static ip addresses, changing from 2.4 to 5 g networks, and a number of other things. The fact that it won't even ping localhost, however, would seem to indicate the problem is with the tablet and not the network.
After a few days (or weeks), it seems to start working again randomly - not from rebooting or anything else, it just does.
I am currently not rooted, running factory rom (see attachment). I'm considering rooting to see if I can get around the problem but since I use Private Mode I've been hesitant to do so.
Any ideas? I seem to remember reading somewhere that Samsung devices occasionally had wifi problems, but don't know if that applies to this issue.
Any help would be appreciated. Thank you.