[Q] gingerbread 2.3.3 ad-hoc support - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi everybody!
so i have a rooted device running xwjv3 -latest official 2.3.3- and i really need to share my laptop internet with my sgs, cuz thats the only way to get internet on the phone.
so how do i get ad-hoc enabled in 2.3.3?
OR is there any sharing ways but ad-hoc so the phone can detect the access point?
by the way, computer's running windows 7
Ps. i already checked the wpa file and stuff, dont seem to be working on gingerbread.

Does this thread help ?

yea, thanks, it actually was my answer- kinda late though, but that's what i was looking for thanks

Glad it worked for you, I had to revert to wpa_supplicant v0.5.11 from the original thread to get it working..

man i have the same problem ,
if u find the solution plz help me

No need to modify wpa_supplicant binary
I changed data/misc/wifi/wpa_supplicant.conf instead of wpa_supplicant. I added ap_scan=2, then set the adhoc network to
priority=1
mode=1
then pushed back the modified file. chown ownership back to system.wifi.
I had root access through adb. So root wasn't necessary for me.
Advantage: Safer than modifying system/etc/wifi/wpa_supplicant binary. Saves you the trouble of compiling modified wpa_supplicant or finding a compiled one for your platform.
Drawback: This is just a temporary solution.You'll have to repeat this process for every new adhoc network as it doesn't enable adhoc forever. It is good for connecting to your home network or other know networks, but if you want to connect to any adhoc network you scan,then this is not your method. Because, wpa_supplicant.conf will be overwritten every time you scan a new network.

Here is an easier alternative to the android to pc adhoc connections without doing anything on the device, only with a PC application ...
http://forum.xda-developers.com/showthread.php?t=2032703

Access Point vs Adhoc
Thanks for the suggestion jota. But, the program suggested by you works in a different way. It creates an Access Point mode Hotspot( a virtual router ) to which Android can directly connect. An application called Connectify can create Access Point mode Hotspot for Windows 7 and above.
What we're discussing here is about another type of Hotspot- adhoc mode. AP mode hotspots are better and newer Hotspot standard, but Windows versions prior to Windows 7 and Nokia Symbian phones with wifi(using softwares like Joikuspot) cant create AP mode hotspots. It's possible to create AP in linux, but not easy for beginers as there's no simple program like Connectify available to do this. You'll have to do some command line works. For those who're stuck wid adhoc networks, this thread is a possible solution.

Related

Tun.Ko for Captivate

Has anyone been able to successfully re-compile a tun.ko for the captivate kernel?
Office still has old IPSEC group ID based vpn
Thanks.
[mods please move to development]
Trying my hand at building that module from the vanilla Eclair + Samsung code drop. Will let you know how it goes...
I used this tun.ko, installed openvpn with the openvpn installer from the market, and installed the VPN_Connections_v099.apk from code.google.com/p/get-a-robot-vpnc to manage the connections. I am able to connect to my cisco vpn concentrator with my captivate. Hope this helps...
where on the phone do we copy the tun.ko file?
I put mine in /system/lib/modules/ and openvpn in /system/bin/. I also installed openvpn settings from the market and enabled the "load tun kernel module" option and changed the "load module using" to insmod. For some reason it would not connect without this, I guess because the tun module is not being loaded correctly. Also you can manually load the module by typing “insmod /system/lib/modules/tun.ko” and check to see if it’s loaded by typing “lsmod” and you should see “tun 11088 0 - Live 0xbf195000”
This worked for me.
loaded it manually, not sure if it'll load automatically now or not, haven't tried it.
Can't get this working...
Do you have to start OpenVPN and manually load the tun before launching VPN Connections? Of course after all of these settings...
Still not working...
Okay, I can manually insert and load the tun.ko and installed the VPN Connections app to this version. Every time I try to connect, it INSTANTLY says 'failed to connect'. Any ideas? I have all the right things in all the right places...OpenVPN installed and configured (although I can't see how I need this with the tun.ko manually started and running). HELP! I really need VPN to work on this device or it is going back...
Great information in this thread. I have Busybox installed, Open VPN binaries installed and Open VPN settings installed as well as the Vpn_connection_99.apk file. One issue though!
HOW DO I MANUALLY DROP THE TUN.KO FILE INTO THE SYSTEM/LIB/MODULES FOLDER?
I tried to using Droidexplorer with no luck, so I copied it to the sd card and tried to copy paste it using Astro File Explorer with no luck either. How the hell do I get it into that folder? I'm rooted and running the JH7 captivate stock ROM.
I feel like once I get it in there, I can manually start the file and get this puppy up and going! I tried to put it into another folder and just point Open VPN settings to it there but it just won't work like that. It needs to be in the Modules folder!
Thanks in advance!
Ugh I've tried about everything and no luck with copying the tun.ko file into the system/lib/modules directory.
I've gained root access using adb shell and su commands and I don't receive any errors in the adb shell when I perform cp tun.ko system/lib/modules but it does not copy the file. I tried to chmod 777 the lib folder but was denied. I'm learning I may not have NAND unlocked for full root. I tried to manually start the module from my sd card but it won't work that way either.
Any suggestions?
EDIT: OK BIG IMPROVEMENT. I WAS ABLE TO WRITE THE TUN.KO FILE TO A DIFFERENT LOCATION IN XBIN AND POINT THE OPENVPN AT THIS. AFTER AN LSMOD CHECK I CONFIRMED IT'S RUNNING. CAN ANYONE HELP ME BUILD A VALID OPENVPN .OVPN FILE FOR CONNECTING TO MY VPN? IT'S A STANDARD CISCO ASA IPSEC VPN THAT HAS A GROUP NAME, GROUP KEY AND VPN ADDRESS.
Thanks!
Here is the link that got me able to install the module elsewhere for all you folks facing NAND issues and not able to install tun.ko in the system/lib/modules folder!
http://forum.xda-developers.com/showthread.php?t=793018&highlight=openvpn+config
Thread moved to Q&A.
OK. I've got true ipsec vpn working perfect on the captivate with the latest jh7 build. Cisco asa 5500 is the device being vpnd through.
Sent from my SAMSUNG-SGH-I897 using XDA App
Is anyone doing anything new and/or differently than what's been described in this thread to successfully connect to a Cisco VPN Concentrator? I know October is only two months back, but a lot can change in two months around here.
Also, there was a question on page 1 asking about whether the tun module had to be manually loaded each time or not. That was never answered. Can anyone shed some light on that, please?
Bunkaido said:
Is anyone doing anything new and/or differently than what's been described in this thread to successfully connect to a Cisco VPN Concentrator? I know October is only two months back, but a lot can change in two months around here.
Also, there was a question on page 1 asking about whether the tun module had to be manually loaded each time or not. That was never answered. Can anyone shed some light on that, please?
Click to expand...
Click to collapse
Give me til tomorrow morning. I have EXACTLY what you are looking for. Consider donating if it helps... . It does need to be loaded each time but in the video I point at 2 apps that will make loading it literally a 3-5 second process and not involve you having to use a pc to load it.
http://forum.xda-developers.com/showthread.php?t=871159
Reason for OpenVpn Settings
fixitsteve said:
Okay, I can manually insert and load the tun.ko and installed the VPN Connections app to this version. Every time I try to connect, it INSTANTLY says 'failed to connect'. Any ideas? I have all the right things in all the right places...OpenVPN installed and configured (although I can't see how I need this with the tun.ko manually started and running). HELP! I really need VPN to work on this device or it is going back...
Click to expand...
Click to collapse
The reason I use OpenVpn settings is because when you restart the phone you have to reload the tun.ko and OpenVpn settings is an easy way to do that, it also fixes the dns after you disconnect from the vpn by going to setting and fix dns. The process I use to start the vpn is (starting from a cold boot of the phone)
1. I ALWAYS leave the check box in OpenVPN settings UNCHECKED (OpenVPN off) unless I'm starting the tun.ko after a boot. After the phone boots I open OpenVPN settings and check the box next to OpenVPN and wait a few seconds, then uncheck it. This loads the tun.ko and only needs to be done after a reboot.
2. go to VPN connections and click and hold the vpn connection you made to your VPN concentrator and click connect. (you should be connected at this point)
3. after you disconnect the dns on the phone may not change back automatically from the VPN dns servers, so go to OpenVPN setting and click setting and Fix DNS. You should be able to get out to the Inet again.
Cognition 3.04
Has anyone gotten this to work on the Cognition 3.04 ROM? I keep getting:
fatal:cannot allocate TUN/TAP dev dynamically
K, I don't know what I'm missing here. There's not word one about config files or their format in this thread but, as far as I can tell, this is a fairly worthless collection of bits without one.
I've reviewed the thread 3 times and searched the forums, where can I find formats for these mysterious conf files?
Some custom roms have tun.ko built in. I use Paragon RC6, based on speedmod kernel. To activate tun.ko I rebooted into recovery mode, chose speedmod tweaks and activated tun.ko, rebooted and installed OpenVPN Installer and OpenVPN Settings from the market. Then had to adb some symbolic links (google is your friend). After d/l'ing conf files from my commercial OVPN supplier and some editing the setup works very well.
Sent from somewhere with my Cappy/ParagonROM/OpenVPN
visionlogic said:
Some custom roms have tun.ko built in. I use Paragon RC6, based on speedmod kernel. To activate tun.ko I rebooted into recovery mode, chose speedmod tweaks and activated tun.ko, rebooted and installed OpenVPN Installer and OpenVPN Settings from the market. Then had to adb some symbolic links (google is your friend). After d/l'ing conf files from my commercial OVPN supplier and some editing the setup works very well.
Sent from somewhere with my Cappy/ParagonROM/OpenVPN
Click to expand...
Click to collapse
If my ROM doesn't have tun.ko built in, is it possible to use from a different ROM?

Milestone wpa_supplicant patched for Adhoc and Backup ?

Been wasting hours trying to connect my Milestone to my iPad running MyWi but it looks like the fix is to patch the wpa_supplicant as was done here http://forum.xda-developers.com/showthread.php?t=754961 - unfortunately none of the wpa_supplicant's over there (05 and 06) work on the Milestone (it stops scanning for networks).
Has anyone compiled it for a Milestone running 2.1update1 ? If not can anyone point me to tools that would let me try to do it?
Also I had a problem with the backup of my original 2.1update1 wpa_supplicant so if anyone can share theirs that would be great, would save me having to reflash.
Thanks !
Still no Milestone AdHoc patch, but the backup is here in case anyone needs it : http://dl.dropbox.com/u/904989/wpa_supplicant - courtesy of dtonator from androidforums.com
I am also interested in this, so I will be watching this
The Barnable WiFi Tether app there is a option to share the 3G over WiFi with wpa_supplicant turned off. After enabled this setting and allow root to the app, everything worked fine here.
hum...will load that app to see what happens (ok it's Barnacle, not Barnable http://szym.net/barnacle/), but we are trying to connect to an existing AdHoc network, not to use the Milestone as a wireless 3G modem.
Try this:
http://forum.xda-developers.com/showthread.php?p=11309189#post11309189
Codelavie

[Q] Net Problem

Hi All
I was trying to enable adhoc wifi connections on my tab, so I downloaded a modified supplicant file but it didn't work. So I restored the old wpa_supplicant file.
But now the although I am able to connect to a wifi, and get a ip, I am not able to access net. Any suggestions?
Also could someone post a working wpa_supplicant file for Froyo.DDjK3 please.
Thanks,
Abhishek
Did you switch off/on the router?
I tried with a lot of different routers. None of them work.

Adhoc support: Need wpa_supplicant binary for s5830i

Hi all,
I am trying to get ace s5830i connected to a wifi ad hoc network. I tired downloading many modified version of wpa_supplicant binaries from xda.
None of them seem to be working on this device .
At terminal emulator (before replacing the binary), if I do
$wpa_supplicant -version
0.6.x..
I am on stock rom, with root enabled. Can someone please post wpa_supplicant binary?(patched binary which is able to connect Adhoc)?
Here is it, but it's buggy you have to disable and renable to connect.
Just rename your original wpa_supplicant copy this one and do the permissions like the original one.
Styrke said:
Here is it, but it's buggy you have to disable and renable to connect.
Just rename your original wpa_supplicant copy this one and do the permissions like the original one.
Click to expand...
Click to collapse
Thanks Bro! :good: Its working.. little buggy though..
I will replace it with this version whenever I need adhoc access.. little painful but I'm ok with this..
Thanks!!

VPN client?

I'm trying to connect my KFHD to my home network so I can access files on my NAS remotely. According to my little device I have to download an app that is compatible with my network - which would be either PPTP or OpenVPN. So far the apps I've tried don't work. Has anyone had any luck connecting to a network via VPN?
I have the same problem , if someone could help I'd really appreciate it.
Have you guys checked around the original kf forums. Even though we are different devices they software is pretty similair.
Sent from my MB855 using Tapatalk 2
To the op are you talking about accessing files from a remote location?
Sent from my KFTT using Tapatalk 2
craby1925 said:
Have you guys checked around the original kf forums. Even though we are different devices they software is pretty similair.
Sent from my MB855 using Tapatalk 2
Click to expand...
Click to collapse
I've searched a lot but I couldn't find anything , would you give us the topic you're referring to?
fcasey said:
To the op are you talking about accessing files from a remote location?
Sent from my KFTT using Tapatalk 2
Click to expand...
Click to collapse
Basically, yes.
So far all the references to VPNs in the original Kindle Fire forums are for subscription based VPN services. I don't want to use someone else's VPN service to get around country restrictions (which is what it seems most people are trying to do). I'm trying to access my own VPN server so I can access my own files on my NAS and to secure my internet sessions if I'm at an unsecured hotspot.
It seems that Amazon has disabled VPN support entirely (kernel level?) so I can't get PPTP to work. OpenVPN would work if I could find a TUN module that works with the device (have tried TUN.KO installer with no luck) and would have to install BusyBox. I don't want to mess around too much since we don't have recovery in place and I don't have my factory cable yet to try to do a restore.
I can get SSH to work but that doesn't protect web browsing. The only way I can find to use SSH as a VPN is by installing OpenSSH. I guess I'll try that as soon as I get my Raspberry Pi up and running - I'm right now using my NAS as a VPN server (not too thrilled with that scenario).
If I find a solution I'll post it here.
same needs here? any news with vpn client for android? only thing I found is https://play.google.com/store/apps/...=W251bGwsMSwxLDEsImNvbS5kb2VudGVyLm9uZXZwbiJd but " This app doesn't yet work Android 4.0"
Now that I have resurrected by machine I was able to test Feat VPN (https://play.google.com/store/apps/...51bGwsMSwxLDEsImNvbS5mZWF0dnBuLmFwcC5saXRlIl0.). It's a client for OpenVPN . I was able to successfully connect to my network remotely. The free version posted above will only work for 1 hour per day. There is a paid version that removes the 1 hour restriction.
xene97 said:
I'm trying to connect my KFHD to my home network so I can access files on my NAS remotely. According to my little device I have to download an app that is compatible with my network - which would be either PPTP or OpenVPN. So far the apps I've tried don't work. Has anyone had any luck connecting to a network via VPN?
Click to expand...
Click to collapse
I use es file explorer to access files on my computer via the wireless network. Is that what you mean?
xene97 said:
Now that I have resurrected my machine I was able to test Feat VPN . It's a client for OpenVPN . I was able to successfully connect to my network remotely. The free version posted above will only work for 1 hour per day. There is a paid version that removes the 1 hour restriction.
Click to expand...
Click to collapse
Feat VPN is now free (without the 1 hour restriction) if you download it from their website. Go to "featvpn dot com" (I can't post URLs) and get the version for Android 4.x
Can't you use FTP mode in ES File Explorer and connect to your ip address?
I don't want to run FTP unless absolutely necessary. Plus, VPN access allows secure browsing at open hotspots and gets me around Amazon's "only in the US" prime video viewing when I'm out of the states.
I have OpenVPN working fine. No need for anything special. You just need to root and install busybox installer (advanced install with symlinks). Then install and run OpenVPN installer.
No packets with OpenVPN
I managed to get OpenVPN installed on my rooted Kindle Fire HD and can setup a connection to a AlwaysVPN server.
But I can't get any packets routed - so no traffic at all....
It's not a DNS problem - I have the same problem if I use bare IP-adresses. And the FixHTC option in OpenVPN doesn't help either.
Can you share your OpenVPN script file ?
diito said:
I have OpenVPN working fine. No need for anything special. You just need to root and install busybox installer (advanced install with symlinks). Then install and run OpenVPN installer.
Click to expand...
Click to collapse
OpenVPN (also to AlwaysVPN) NOW WORKING
udothegreatest said:
I managed to get OpenVPN installed on my rooted Kindle Fire HD and can setup a connection to a AlwaysVPN server.
But I can't get any packets routed - so no traffic at all....
It's not a DNS problem - I have the same problem if I use bare IP-adresses. And the FixHTC option in OpenVPN doesn't help either.
Can you share your OpenVPN script file ?
Click to expand...
Click to collapse
I got it working now. I just needed so set symlinks for ifconfig and route to the busybox:
mount -o remount, rw /system
ln -s /system/xbin/busybox /system/bin/ifconfig
ln -s /system/xbin/busybox /system/bin/route
mount -o remount, ro /system

Categories

Resources