[GUIDE/HOWTO] CIFS+UTF-8 Brings Music/Movie/File Access Anywhere with 3/4G or WiFi - myTouch 4G Android Development

CIFS + UTF-8 Kernel Module Support
User CONTRIBUTED HOWTO Guide and Tips!​
What is CIFS:
[Alfresco CIFS Wiki]
[Wikipedia CIFS]
XDA's own developer (f3d0r) has created the [CIFS Manager] to help setup CIFS+UTF-8 modules
I have added CIFS + UTF-8 support to both my Froyo Kernel and Gingerbread Kernel... ALL user of my Kernels have this cool capability available to them...
Please help contribute to this GUIDE / HOWTO. I will link all the cool tips and setups to the OP and give proper credit to those who contributed
Please help each other out... This is what makes XDA the best community among other Android communities...
Thanks
[Windows 7 LAN Setup] by user Dclaw_Fantum (make sure you hit Thanks button for him if he helped you)
[Windows 7 WAN/PPTP Setup] by user se1000 (make sure you hit Thanks button for him if he helped you)
[Windows 7 WAN Setup] by user Dclaw_Fantum (make sure you hit Thanks button for him if he helped you)
[CIFS Manager App Tip #1] by user Dclaw_Fantum (make sure you hit Thanks button for him if he helped you)

CIFS = Win

Okay, screens will come later. I only have the Windows part typed out, I will edit it more soon. Some of the steps may not be clear without screens. The phone part is coming too. I moved my SDK install location, DroidExplorer won't run, gotta reboot, so here is the text for setting up the share in Windows:
For this guide I am using Windows 7 Ultimate 64-Bit and Royal Glacier v1.0.
First things needed to get CIFS working are:
CIFS Manager
Have the ability to gain Administrator rights on your Windows install.
A rooted phone running one of Faux's kernels (or any kernel with CIFS support).
Let's Begin:
First we have to setup the folder we want to share on the Windows PC.
1. Find or Create the folder you want to share. I created a folder named "CIFS Share".
2. Right-click the folder and select Properties.
3. Under the Sharing Tab, click Advanced Sharing.
4. Click the checkbox at the top, the text fields will fill with the folder's name. You can add a comment if you like, it isn't necessary.
5. Click on the Permissions Button.
-By default, the group "Everyone" is assigned read access.
-This is not a secure setting but is okay when you are only doing a LAN share, behind a firewall. Files shared under this group require NO authentication, hence the name Everyone.
-***This is where you can change which users have rights to the shared files: ***
6. Click the "Add" button to create a new user permission.
-In the large text box, type in the username you want to have access to the share.
--My user is named "User0". So I typed "user0" in the box.
-Click the "Check Names" button. Windows will put the proper name in place. My box changed to "GREG-PC\User0"
-Click "OK" and close the Select Users or Groups.
7. Now the user you just added is in the "Group or user names" box.
-Click the user name to select it.
-If you want to read and write* to the share, click the "Full Control" checkbox. *CIFS mount is Read-Only. We can get write access elsewhere.
-To just allow read access, leave only the "Read" checkbox ticked.
-I suggest selecting the group "Everyone" and then clicking the "Remove" button. Assign another user access before you apply removing Everyone.
-Click "Apply" then "OK" to exit.
Congratulations, you are now sharing any files contained within this folder to the users specified. Next, we have to set up the phone...

Looking forward to the guide, tried to set it up on my own, but have no networking experience and honestly was just taking a shot in the dark. Needless to say, CIFSManager laughed then punched me in the throat for having the audacity.

Thanks faux123, CIFS is so cool to have.
Thanks for the info on CIFS Manager. My Phone is playing so nicely with my Synology NAS.
Using your LV Kernel with CM7 Nightly #14 and all is going good so far.

darinmc said:
Looking forward to the guide, tried to set it up on my own, but have no networking experience and honestly was just taking a shot in the dark. Needless to say, CIFSManager laughed then punched me in the throat for having the audacity.
Click to expand...
Click to collapse
CIFS manager needs some additional steps, most importantly, it will create a folder on the SD card that it will use to see the files from your computer. It makes the phone think the shared folder from the computer is that local folder on your phone. That was where I messed up in my haste the first time I tried to set it up. First time I had an error happen when trying to setup a sharing service.
Forgot that I had to redirect CIFSManager to the correct location of the module. In Settings of CIFSManager, tick the checkbox for "Load via insmod" then tap on the "Path to cifs.ko[:<modpath>]*". Now you have to type in "/system/lib/modules/cifs.ko" in the text box. Also, Faux added cifs support @ 0.8.2, RoyalGlacier comes loaded with 0.8.1.1. You have to update your kernel if you are on anything before 0.8.2 for this to work.
Text for setting up the Windows LAN sharing is up, haven't gotten to the WAN sharing or phone setup parts yet, the WAN sharing will come last, after the screen shots. The WAN sharing part is going to be the worst part, everyone's router has a different interface.
I'm tired, I will post more sometime late Saturdaynight/early Sunday morning (3/12 or 3/13), I'm gonna be busy during the day tomorrow.

All I did to set this up on Windows 7 was:
1. Download CIFS manager on my phone
2. The computer part I right-clicked on the folder I wanted to share, went to properties then sharing then advanced sharing, like dclaw_fantum explained (his posts are def more detailed than this, but this is how I'd explain it to a friend), and checked to share and that was it. (I setup a password on my computer login under control panel settings)
3. Then on your phone, you open CIFS and add new share. Input your IP address followed by / and the name of the folder (ex. 11.65.8.52/music), the mount point field autofilled for me, then put in computer user ID and password.
4. Check the "Load cifs module" and "Load via insmod" boxes in CIFS Manager app and it worked perfect! (This is where I got an error the first time I tried it, but after rereading the linked thread in Faux's kernel thread I checked these)
Hope this helps, it's not super professional and I'm not sure how secure it is (I assume it is, but I haven't done too much computer network stuff), but it worked for me! "Unmounting all" gave me an error, it unmounted one share but the other one wouldn't unmount so I rebooted my phone and haven't tried again, yet.
Any ideas on battery/data consumption when you're not using files from your computer? Like when the shares are mounted but you're not necessarily using anything from them?
Sent from my HTC Glacier using XDA App

How do I set up for 3g/4g connection?
Just forward a specific port?

supa2001 said:
How do I set up for 3g/4g connection?
Just forward a specific port?
Click to expand...
Click to collapse
WAN access via 3G/4G requires more sophisticated setup including:
Router configuration
Dynamic DNS account
and a few other things...
Hopefully some advance users here can show the setup for it, or you can exercise your GoogleFu and research on this topic and post back here to share with everyone else

What I meant earlier is that I have no complex network experience, local networking is easy, it's streaming over the internet I want and cannot accomplish.

darinmc said:
What I meant earlier is that I have no complex network experience, local networking is easy, it's streaming over the internet I want and cannot accomplish.
Click to expand...
Click to collapse
I've been a little busy the past few days, hopefully I can get up the WAN configuration for you when I get home tonight, eliasadrian and I already have the majority of the phone setup posted above. I'll have to get screen shots up after I get the posts together.
In a nutshell, port 445 needs to be forwarded, the PC should have a dhcp reservation with your router and having a DynDNS account makes things much simpler in the long run for you. Do not forward any unprotected ports.
The cool thing is that after this is setup, you can put the same info into es file explorer and you will have read/write access. Then you can use the CIFS mount to stream media that es will not allow to stream.

dclaw_fantum said:
I've been a little busy the past few days, hopefully I can get up the WAN configuration for you when I get home tonight, eliasadrian and I already have the majority of the phone setup posted above. I'll have to get screen shots up after I get the posts together.
In a nutshell, port 445 needs to be forwarded, the PC should have a dhcp reservation with your router and having a DynDNS account makes things much simpler in the long run for you. Do not forward any unprotected ports.
The cool thing is that after this is setup, you can put the same info into es file explorer and you will have read/write access. Then you can use the CIFS mount to stream media that es will not allow to stream.
Click to expand...
Click to collapse
Can't wait for the write up Post some screen shots too if you don't mind...

dclaw_fantum said:
I've been a little busy the past few days, hopefully I can get up the WAN configuration for you when I get home tonight, eliasadrian and I already have the majority of the phone setup posted above. I'll have to get screen shots up after I get the posts together.
In a nutshell, port 445 needs to be forwarded, the PC should have a dhcp reservation with your router and having a DynDNS account makes things much simpler in the long run for you. Do not forward any unprotected ports.
The cool thing is that after this is setup, you can put the same info into es file explorer and you will have read/write access. Then you can use the CIFS mount to stream media that es will not allow to stream.
Click to expand...
Click to collapse
Can't wait for the tutorial, I wish I understood enough of the middle paragraph to take the info and run but sadly enough I don't. Gonna try to google my way through it in the meantime.

WAN Configuration (for CIFS over Internet)
Okay, this is the part that let's you have the ability to use CIFS outside of your WLAN. The setup is going to take a little more work than a LAN setup, but, if you follow along you will have a very reliable CIFS connection for streaming files from your PC to your phone anywhere you have a data connection.
**Before anyone posts about how the songs/videos they are streaming are choppy/not fluid, I have no control over the buffer settings in CIFS manager. Also, the connection throughput is king when streaming. If the path the data takes slows it down below the playback rate of the media, it will become choppy. So, even if you are on HSPA+, it may be choppy. Somewhere between your phone and your PC, there is a slow link.**
Again, for this guide I am using Windows 7 Ultimate 64-Bit and Royal Glacier v1.0 w/ Faux's 0.8.5 kernel.
Prerequisites:
CIFS Manager installed and working.
Have already setup the share on your PC.
Administrator access to your router/gateway.
**Not required, but very helpful:
A DynDNS account.
Let's Begin:
Since you already have CIFS working on your LAN, we are going to setup the router to allow the data to go out to the internet.
DHCP Reservation:
1. Log into your router. Find the area pertaining to "DHCP Reservation". On two of my routers, this was a button (Linksys/Cisco and Vizio).
2. Now we need the IP and MAC addresses.
a. Control Panel > Network and Sharing Center
b. Click on the network connection name, in my case FancyEagle.
c. Click the Details... button.
d. The Physical Address is your MAC address. The IP address will be labeled IPv4. mine are 00-1B-9E-69-E6-3D and 192.168.1.104.
3. Add the IP and MAC addresses into the DHCP reservation area. This will bind that IP address to your PC, keeping it available for your PC and not assigning it to any other device.
Port Forwarding:
1. Find the "Port Forwarding" section of your router.
2. There are several fields to fill in. Here is what you need to fill in:
192.168.1.[104]---Port 445---TCP---Enabled
Repeat for the following ports/protocols: 135/TCP, 137/UDP, 138/UDP, 139/TCP.
*Replace [104] with your IP address from the DHCP reservation portion.
3. Apply/save settings.
Now you have the WAN link setup, you need to know the router WAN IP address to connect at this point. Since majority of us don't want to pay extra for a Static IP address, the ISP rotates their available IP addresses around. This is where DynDNS comes in handy. You don't need to even know it. You create an account with them and then enter the login info into the router.
1. Account w/ DynDNS setup already.
2. Find DDNS or Dynamic DNS service on your router.
3. Enter your login info from setting up your account.
4. Now, go to your phone and replace the IP address in the "Share Path" field in CIFS manager with your dyndns domain.
Now, instead of "192.168.1.104/CIFS Share", it should be "mydomain.dyndns.tv/CIFS Share".

Did you actually get it working? I tried multiple times on my own and was never able to mount the share.
Thing is, CIFS is a chatty protocol engineered for low latency LAN links. Even if it works, it may not perform very well over a relatively high latency WAN.

se1000 said:
Did you actually get it working? I tried multiple times on my own and was never able to mount the share.
Thing is, CIFS is a chatty protocol engineered for low latency LAN links. Even if it works, it may not perform very well over a relatively high latency WAN.
Click to expand...
Click to collapse
I keep getting timeouts. I had similar issues when first setting up ES to work this way. Found a little more info, updating previous post...
there are 5 ports associated with Samba/CIFS. I'm getting to the router when I use the IP address, rather than the dyndns domain. Still getting a refused connection. Gotta go back and do some research...
I have successfully set up Gmote for something similar, but Gmote doesn't support streaming most videos. It will stream supported audio files. I missed something in the previous posts, sill getting refused connections with ES and CIFS.

dclaw_fantum said:
I keep getting timeouts. I had similar issues when first setting up ES to work this way. Found a little more info, updating previous post...
there are 5 ports associated with Samba/CIFS. I'm getting to the router when I use the IP address, rather than the dyndns domain. Still getting a refused connection. Gotta go back and do some research...
I have successfully set up Gmote for something similar, but Gmote doesn't support streaming most videos. It will stream supported audio files. I missed something in the previous posts, sill getting refused connections with ES and CIFS.
Click to expand...
Click to collapse
Yeah I believe it's ports 137-139 and 445 BUT, I set my PC as the DMZ and still got timeouts and connection refused errors.
Works over WiFi like a charm
I really think it's the combination of the chatty protocol and the latency when going over a WAN link.

se1000 said:
Yeah I believe it's ports 137-139 and 445 BUT, I set my PC as the DMZ and still got timeouts and connection refused errors.
Works over WiFi like a charm
I really think it's the combination of the chatty protocol and the latency when going over a WAN link.
Click to expand...
Click to collapse
I'm not getting refusals anymore, just timeouts. It is ports 135/TCP, 137/UDP, 138/UDP, 139/TCP and 445/TCP.
I can use the WAN IP and connect using my WiFi, but that just tells me that my settings are correct. Looks like the latency is the issue. I even connected to the neighbor's WiFi to try it and timed out. Looks like the WAN part isn't going to work this way. Kind of a bummer. I'll keep trying different ways to remotely access files, probably gonna be stuck with TFTP.
Without the ability to create a domain and setup VPN, there isn't much choice from here.

dclaw_fantum said:
I'm not getting refusals anymore, just timeouts. It is ports 135/TCP, 137/UDP, 138/UDP, 139/TCP and 445/TCP.
I can use the WAN IP and connect using my WiFi, but that just tells me that my settings are correct. Looks like the latency is the issue. I even connected to the neighbor's WiFi to try it and timed out. Looks like the WAN part isn't going to work this way. Kind of a bummer. I'll keep trying different ways to remotely access files, probably gonna be stuck with TFTP.
Without the ability to create a domain and setup VPN, there isn't much choice from here.
Click to expand...
Click to collapse
Yeah I agree. I've been trying to setup a PPTP connection to my PC but that doesn't seem to work either.
I'm thinking if we can get PPTP to work, then there's a fighting chance CIFS will connect over that link.

se1000 said:
Yeah I agree. I've been trying to setup a PPTP connection to my PC but that doesn't seem to work either.
I'm thinking if we can get PPTP to work, then there's a fighting chance CIFS will connect over that link.
Click to expand...
Click to collapse
I think I'm gonna go a simpler route first for some of the users on here. I might just do an FTP server in the PC and configure ES to handle it. It won't stream, but it will allow access to the files remotely. That will give people something to hold them over until we can figure out a viable solution to this. At least they will have read/write access to the FTP server.
Someone claims that they have had success using OpenVPN. I'm going to try it. If it works, I will have a whole new, complete tutorial with screen shots and step by step instructions to post up. I will probably host it externally so I have greater control of the formatting. Stay tuned in for my next update, I will let everyone know if it works. After that, I will have to go through everything and get screens and type up instructions.

Related

WiFi Network Browsing on PDA2k

I have a WiFi network at home but am having trouble connecting in to get to our file server. I can browse the internet using the WiFi connection, but cannot seem to connect a networked drive. It is asking about VPN's and such, which we don't have
Anyone know how this is easily done? It might be easier if I can enter a username and password to log into the file server...
i'll take a stab at this. can you please clarify whether you are sharing a physical drive or a directory.
can you do a simple test by sharing a directory on your PC and install a demo of Resco Exprorer 2003 on you PPC. then try to browse your network with Resco Exprorer. you should be able to see the shared folder unless you have the workgroup and/or firewall misconfigured.
I installed Resco, it doesn't show any computers on the network, although we have 4 or 5 up and running on the network just fine right now.
If I try and add by IP or by PC name, it gives an error which is likely because you need a username and password to browse these PC's.
I think you have some network setting wrong on your PPC. There some setting that need to be set on your PPC to be able to access your shared rescources. Make sure your PPC has the same workgroup name. I have read others post that the AP was the problem. After switching to another brand of AP, they were able to browse the network resources.
When I hit a brick wall like this, I back up using Sprite Backup. Then do a hard reset. It's often more simple to troubleshoot the unit with baring installation. When I find the problem, I restore my current backup and fix it from there.
I know I'm not helping much, but there are so many variables to your problem. You'll just have to stick with it. We know that the WiFi works since you can browse the interent. I for one almost regretted buying this unit. But when I found a stable ROM and stable productivity applications, I don't think I can live without it.
nomadman said:
I think you have some network setting wrong on your PPC. There some setting that need to be set on your PPC to be able to access your shared rescources. Make sure your PPC has the same workgroup name.
Click to expand...
Click to collapse
But how do I find network settings like this?
Try going into the WiFi Setting and play with Work and Internet settings. I attached MyIpConfig for PPC. Extract the file and copy the extracted file in any directory on your PPC and run it. This will give you some information that may help troubleshoot. Make sure the WiFi adaptor is selected than go into the "More Info" option. This will give you the workgroup name.
Have you backed up and hard reset yet?

Accessing folders on my desktop over wifi

First off, please accept my apology if this question has been answered somewhere, but I feel like I have checked the farthest corners of XDA developers with no luck............
I cannot not seem to access my desktop computer's folders over wifi anymore...........
now i am no stranger to WM phones in anyway, I've had the mpx 200, 220, T-mobile sda, mda, cingular 2125, audiovox smt5600,and have been tweaking forever and now the Cingular 8525, I am running the LVSW(3/26)WM6 rom
I use to be able to access my folders very easily over my past devices, so I need your help???????????
I think it's a combination of my connection settings, and wifi settings, but who knows..........
anyhow I'd really appreciate anyone's help, until now I"ve been only an addicted reader of this website, so please help , when I go into my file explorer, and attempt to put in the name of my computer(Reuben), it simply tells me it can't be found
afaik resco file explorer lets you browse computers over network no problem on the Hermes. Are you considering WM6 for your 8525??
I just tried connecting to my pc for the first time using Remote Desktop and works like a charm. I used this info to get me through this.
http://www.microsoft.com/windowsxp/using/mobility/getstarted/remoteintro.mspx
I did not go through all the steps mentioned, all I did was put a checkmark under REMOTE DESKTOP and ALLOW USERS TO CONNECT REMOTELY TO THIS COMPUTER.
reu15 said:
when I go into my file explorer, and attempt to put in the name of my computer(Reuben), it simply tells me it can't be found
Click to expand...
Click to collapse
Have you got a new router? Check and make sure that its network seperation is off. That stops you connecting to computers over the wireless.
Maz
network seperation?
I'm not sure about those devices you used but my iPaq 4155 connected to windows shared files differntly from the file explorer then my TyTN does. I'm not sure if this is what you are talking about.
The way you do it now is from File explorer:
Menu -> Open Path -> New Path
Then enter the network path ie \\Computer Name\Folder Name
Hope that's what you were looking for
that's exactly what I do, but then I get the error message, I am gonna reset me router and see what happens
reu15 said:
that's exactly what I do, but then I get the error message, I am gonna reset me router and see what happens
Click to expand...
Click to collapse
Dono - works fine for me. Make sure you're on the same subnet as the computer you are trying to connect to. Also make sure that computer doesn't have a firewall prohibitting connections (MS One Care does this as does I think the default MS Firewall - you have to turn on file sharing)
its just a simple networking. first, u must set your IP for wifi configuration manually & 'use server-assigned IP address' for pocket pc IEEE 802.11b/g bla bla bla as well. use resco explorer or total commander. it is so fun because i can play my huge video stored in my laptop directly in pocket pc even i'm in toilet (make sure file/folder sharing is enabled)
firstly resco is the best for this. if u aint got it, invest.
ensure file sharing installed on pc and u are mapping to the right share and it is all user access if possible
ensure on ur ppc u can connect to internet
try a diff pc to connect to share to limit issues to ppc and not ur pc
turn off firewall altogether
turn aff antivirus antispan and other internet protection
on ppc change wifi to connect to work not to internet
reset all devices.
use ur explorer to map a drive. if it doesnt auto show type it in full.
if all these fail ur gonna need to break this down to simpler stuff n piece meal test using pc to pc before using ppc.
the above also disables some serious security so once working piece meal them back on till u find what cut u off.
oh yeah one other beauty which allows u to change wifi connection type back to internet from work is to go into connections - exceptions and insert ur network ip address range. eg 192.168.* so it knows using this range is not an internet range.
these r some hints. i have had issues but usually pc file sharing, connection type or exception ranges.
failing this and u still need help we are going to need heaps of detail coving the PPC the wifi router and PC.
bearing in mind this should work even if troublesome for u. fiddle. if u can access the internet on ur ppc over wifi then it it is likey to be a pc based issue rather than ppc.
Simon
@Reu15
Be sure your firewall is not blocking this traffic. Check all logs to include those from SPAM and WORM protection. I can connect easy with total commander using my \\computer name only. Im still working on the remote display thing.
well, for what it's worth I tried and tried to do this with Resco and with Built in native file explorer and it wouldn't work. Slightly differnent in that I was trying to connect to my Samba server (linux)...but this should work fine, all other wifi PC laptops connect fine.
I read about an issue with this and tried the siggested fixes but I never got it working, annoying. The samba share never showed automatically. wierd.
I am very greatful for all your help, suggestions, and advice, but now I have a completely new problem, and its really got me pissed, please bear with me, but it has nothing to do with windows mobile so here goes:
while trying to follow this advice of an earlier post, (in windows xp) I right clicked on my computer icon on my desktop, went down to properties and selected, went over to the 2nd tab(computer name), and clicked the button for network ID, i selected the computer was part of a business betwork , but that it wasnt on a domain, that caused my main login screen to completely disappear, and now I have to log in my clicking ctrl+alt+del which is a pain, I want my login screen back...........
Samba - Linux
bingobob said:
well, for what it's worth I tried and tried to do this with Resco and with Built in native file explorer and it wouldn't work. Slightly differnent in that I was trying to connect to my Samba server (linux)...but this should work fine, all other wifi PC laptops connect fine.
I read about an issue with this and tried the siggested fixes but I never got it working, annoying. The samba share never showed automatically. wierd.
Click to expand...
Click to collapse
With Samba and windows I always have to manually configure my etc/samba.conf file. And make sure the user and permissions are set. You can also make it public just for testing. That will make it available for all users. Dont forget to add the same user/password in your linux box.
I am no GURU but my linux shares work perfectly with XP.
I have just managed to connect to my computer folders by using Resco file explorer and mapping network drive. I didn't need to change anything much and it worked straight away. Hope you've sorted it.

Tethering: How to point a browser to use the tp2 connection

I would like to tether my phone to my work comp so I can use my work keyboard/mouse/screen rather than my phone to do browsing. I am able to connect it but is there a way to direct only traffic from, say firefox, to the phone connection and let the rest of my net traffic be handled by the nic on the lan?
I don't have the networking expertise to figure this one out and I haven't been able to find it with searches. I probably don't know the right terminology to search for.
Thanks
This is going to be difficult to do unless you know the specific IP addresses or networks you wish to access via the LAN interface.
If you do then you can move the default gateway on to the interface to your phone and then add static routes for the addresses you want to go via the LAN interface.
This is done by using the route command in a cmd window.
R.
dicko99 said:
This is going to be difficult to do unless you know the specific IP addresses or networks you wish to access via the LAN interface.
If you do then you can move the default gateway on to the interface to your phone and then add static routes for the addresses you want to go via the LAN interface.
This is done by using the route command in a cmd window.
R.
Click to expand...
Click to collapse
thanks for the reply. I figured it had to be more difficult than it seemed on the surface.
so, based on what you have said, would i be able to do the opposite? where i could build a routing table for each specific site's ip that i want to have my browser be directed to my phone for? if possible that would be adequate. what do you think?
Any other ideas? I guess I'll try and read up on the route command and see how I might be able to use it.
haha trying to watch porn at work, eh?
Maybe I'm off, but wouldn't trying to adjust the settings required for this move not be possible if there's admin restrictions on your work PC anyway?
rorytmeadows said:
haha trying to watch porn at work, eh?
Maybe I'm off, but wouldn't trying to adjust the settings required for this move not be possible if there's admin restrictions on your work PC anyway?
Click to expand...
Click to collapse
I have admin rights. I don't have full access to the internet (unless I use my ssh tunnel). I just want to figure out how to get more out of my data plan and use my time better than typing with two fingers and navigating via a tiny screen when i have a proper keyboard and screen right infront of me.
It's really more of a case of trying to figure out if it can be done and how. Also some curiosity and the desire to learn more. Unfortunately, I'm not that knowledgeable regarding network intricacies and routing but thought some folks here might have the info and could help me figure it out.

Enables connection to ad-hoc WiFi networks, WEP semi-working

Happened across this in another XDA thread:
http://forum.xda-developers.com/showpost.php?p=7674767
They have a patched wpa_supplicant file that can connect to ad-hoc wifi networks, which our default one cannot. It shows ad-hoc wifi networks with a * in front. This can be useful if you're traveling and want to connect to a computer's Internet connection sharing.
Interestingly, it seems to get farther in connecting to WEP networks as well, in that it connects and thinks it's connected, but then the Internet still doesn't work. I took a look at the logs but didn't see anything helpful in there. Maybe someone smarter than I can figure out what the issue is? They're unsecure, but sometimes if you're at a hotel, it's the only game in town.
You can install this just by copying it to your sdcard's root and editing your froyo.user.conf to include a line like:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
Edit: Update, it turns out that when connected to WEP, it's actually working as well! Unfortunately, the issue seems to be that somehow the DNS is not working. Things that only need IP addresses like sync and entering IP addresses into the browser work fine. If anyone wants to take a stab at fixing this, it'd be much appreciated.
Man, I owe you my life
I tried some solutions and never worked, now I have free ad-hoc internet on android
Unsecured BTW
Cooooooool!
You should get this committed. /system/bin I would think be in the system image... so mention it to stinebd.
Eh, I'll mention something to him now
Seems it'll never get committed...
Code:
+#define ANDROID_IBSS_HACK
+
+#ifdef ANDROID_IBSS_HACK
lol!
arrrghhh said:
Cooooooool!
You should get this committed. /system/bin I would think be in the system image... so mention it to stinebd.
Eh, I'll mention something to him now .
Click to expand...
Click to collapse
pssst.. hey argh I still without a router xD
husam666 said:
pssst.. hey argh I still without a router xD
Click to expand...
Click to collapse
........Ok?
arrrghhh said:
........Ok?
Click to expand...
Click to collapse
cant you remember the other thread about ad-hoc?... whatever
i have the code in a bat file is there a way to mount it on start up?
husam666 said:
cant you remember the other thread about ad-hoc?... whatever
i have the code in a bat file is there a way to mount it on start up?
Click to expand...
Click to collapse
Sorry, lots of threads man...
manekineko included a way to mount it at boot:
manekineko said:
You can install this just by copying it to your sdcard's root and editing your froyo.user.conf to include a line like:
Code:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
Click to expand...
Click to collapse
godammit whats wrong with my brain
Sent from my FROYO X using the XDA mobile application powered by Tapatalk
Do we know yet whether the problem with WEP is a driver or userland issue?
I played around more with the WEP thing, and I think it's getting really close.
It actually really is connected, there's no incorrect reporting by Android. What's failing is the DNS somehow.
If you run the Terminal Emulator, you're able to ping IP addresses no problem (for that matter you can enter IP addresses into the browser and load webpages no problem). My Gmail sync already had an active connection beforehand, and so it had an IP address to work off of, and even that connected fine on WEP and downloaded new email.
However, no matter what I do, I can't seem to get DNS working.
Here are the things I've discovered in case anyone else wants to carry on the torch:
-In the terminal emulator, DNS never seems to work. Android does not use the standard Linux resolv.conf file, so none of the command line tools can resolve DNS. Puzzlingly, even when using nslookup and specifying your own DNS server does not seem to work.
-Instead, what Android does is store the DNS into two properties: “dhcp.eth0.dns1” and “dhcp.eth0.dns2”. You can read these using the command line command "getprop", and there is already an IP address set in dns1 for me after connecting to WEP, so the problem isn't there I think.
-You can modify these properties, and that normally works to change the DNS server in Android, using the command "setprop". I changed dns1 to the OpenDNS server, and I could verify the change took on the command line using getprop, however, still in my browser I couldn't load any pages by domain name.

[Rooted][Guide]Wifi Reverse Tether - Windows and Ubuntu - Ad Hoc Networks

This guide teaches you to reverse tether your Android phone via WiFi. That is, it allows you to use your Ethernet connection of PC on your Android phone. It is useful for those who do not have WiFi routers and data connection. So if you have unlimited data plan for your computer, why not share the connection with your phone?
Notice: Backup your phone if you need to, I must not be held responsible for any damage to your phone. The following procedure works perfectly on stock ROM. Moreover, I am not a developer of the files supplied, I just got the files from the internet.
Credits to the actual authors of these files (Yet unknown to me). I have only contributed by coming up with a proper procedure and configuration for this.
Requirements:
Rooted phone
WiFi enabled Laptop (e.g. Dell Inspiron 15 series)
Root Explorer OR any other application that allows you to access entire system and also copy paste system files.
View attachment wpa_supplicant.zip
Procedure:
Phone:
Download Wpa_supplicant.zip and extract "wpa_supplicant" from it, save it on your SD card.
Open Root Explorer, and grant it superuser access when asked for.
Navigate to system -> bin and long press on wpa_supplicant; Select copy, and paste the file into any folder on your SD card.
Now navigate to the file you downloaded, copy it in same way, and paste it back to system -> bin. Note, you might need to mount the system as R/W instead of R/O by pressing a button on the top just before pasting the file.
Reboot.
Ubuntu (Must work for other Linux Distros too):
Open Network Connections
Goto Wireless tab, select add, and set the following:
SSID: <Any_name_you_like>
Mode: Ad hoc
Leave other things unchanged, and go to Ipv4 settings tab
Set method to Shared to other computers
Go to Wireless security tab and set Security to WEP 40/128 bit key and set key to a numeric password (or hexadecimal one).
Check the connect automatically box on top of the tabs and press Save.
Your Android phone must now detect this network, and you can establish the connection by using your security key.
Windows XP, Vista, 7
Download and Install Connectify from www . connectify.me/download-lite/
Start Connectify Hotspot by giving a name and password to your hotspot and selecting the Ethernet connection to share. Make sure the security type is WEP or Open.
Disable your firewall (Simply adding it to exceptions doesn't work for AVG at least)
Now your phone should be able to see the hotspot and establish the connection using the password set.
Known Issues:
Random disconnections (Very less frequency)
Disconnections due to screen lock / sleep on laptop
Enjoy, and hit thanks if it worked!
nice tutorial for the wifi rev the ............ i m going try ........
Sent from my GT-S6102 using xda premium
manoranjan2050 said:
nice tutorial for the wifi rev the ............ i m going try ........
Sent from my GT-S6102 using xda premium
Click to expand...
Click to collapse
sure, give it a try
oops...no different with my post.
kurotsugi said:
oops...no different with my post.
Click to expand...
Click to collapse
Well, I tried to search for similar posts, found none, and so thought of writing one myself. I followed the links from your signature and read your post. Just edit it and write that it does work with secured connections At least it worked for me with the wpa_supplicant attached in this post. And in this post I elaborated a little more on configuration at desktop because in Windows (especially my Vista), there were several problems with Ad hoc mode sharing, and it only worked with Connectify for me. I guess I might have not configured it properly then, and just wanted to share something that worked for me. And then I tried doing Ad hoc mode on Ubuntu, which never worked until the passkey was set to 40/128 bit WEP security.
no probs...you have find the method to use secure connection. that's the differences between mine and yours. its a nice post with more detailed step. much more better than mine. people should refers to your post for better wifi adhoc setting. keep sharing yo
kurotsugi said:
no probs...you have find the method to use secure connection. that's the differences between mine and yours. its a nice post with more detailed step. much more better than mine. people should refers to your post for better wifi adhoc setting. keep sharing yo
Click to expand...
Click to collapse
Haha, nothing like that They could refer to any of our posts, because both of us had the same intentions (Sharing what worked for us)
Well, I want you to use your wpa_supplicant, and disable firewall and try to connect in a secure way, I am sure, it has to work. I guess the blog-post that I referred to (for downloading the file) must have been made using your post. Try it once and let me know
Also let me know if you have disconnections For me, I experience 2 to 3 disconnections when trying to connect to a WiFi router, and no disconnections while connecting to Ad Hoc N/w. So if we could collaborate and get some solution to it, it would be great!
I don't have any firewall and I have tried that. not working. btw, I made that post to fix wifi problem. the adhoc connection is just a bonus. I haven't check your wpa_suplicant, it could be different with mine. there's possibility that your wpa_suplicant support secure connection but mine simply doesn't support it.
kurotsugi said:
I don't have any firewall and I have tried that. not working. btw, I made that post to fix wifi problem. the adhoc connection is just a bonus. I haven't check your wpa_suplicant, it could be different with mine. there's possibility that your wpa_suplicant support secure connection but mine simply doesn't support it.
Click to expand...
Click to collapse
Possible. I had once come across a source file for wpa_supplicant, in some forum. I'll send you a link of the same if I get it once again, and then may be we could try to figure out how we could have both the things (Secure + Reliable ad hoc)
Edit: Link to the forum regarding source of wpa_supplicant, for anyone interested to solve disconnection and security issues.
bookmarked
In my phone it just keeps on showing "obtainig IP address" (security mode)
but in open security mode i am able to use internet on my device!!!
Help
avilove4u said:
In my phone it just keeps on showing "obtainig IP address" (security mode)
but in open security mode i am able to use internet on my device!!!
Help
Click to expand...
Click to collapse
Did you use the wpa_supplicant attached in this post, or did you obtain the file from any other source? Plus, have you disabled your antivirus firewall (if any)?
If your answer is yes to above questions, wait till it shows disconnected/remembered and then, turn off your wifi, turn it back on, and redo this about 2 to 3 times if problem exists. The problem you mentioned happens only during handshaking (initialization), and once you are connected, there is hardly any chance that you would get disconnected.
Do try the solution and get back to me. All the best
Make life easy, use connectify. If you would like to make life a lot easier, create a usb reverse tether mod
CarlDeanCatabay said:
Make life easy, use connectify. If you would like to make life a lot easier, create a usb reverse tether mod
Click to expand...
Click to collapse
i want reverse tether through wifi bro ..
CarlDeanCatabay said:
Make life easy, use connectify. If you would like to make life a lot easier, create a usb reverse tether mod
Click to expand...
Click to collapse
xD Yes yes indeed, connectify works like charm, but only on Windows 7 (as it allows virtual router mode in Win7) but to use it with XP and Vista, we need this wpa_supplicant work around. And reverse tether with USB exists already, plus there are a few issues that prevent us to download apps from market, and stuff like that due to tunneling issues...
Nirdh said:
xD Yes yes indeed, connectify works like charm, but only on Windows 7 (as it allows virtual router mode in Win7) but to use it with XP and Vista, we need this wpa_supplicant work around. And reverse tether with USB exists already, plus there are a few issues that prevent us to download apps from market, and stuff like that due to tunneling issues...
Click to expand...
Click to collapse
Solution for my problem ???
How can you call it a 'reverse tether'?
Its more like ICS over WiFi.
Using Connectify,you create an access point (aka hotspot).
other options you can use :-
bzeek,virtual router
idk about linux
CharsiBabu said:
How can you call it a 'reverse tether'?
Its more like ICS over WiFi.
Using Connectify,you create an access point (aka hotspot).
other options you can use :-
bzeek,virtual router
idk about linux
Click to expand...
Click to collapse
Well, as I already said, Connectify creates access point only on Win7 (that too if there is hardware for it), on other OSes, it creates ad hoc network, which Android phones do not detect. And it is called reverse tether, because you are using your PC's ethernet connection on your WiFi (the ethernet connection is shared with your phone over WiFi). Virtual router also works well for Win7, not for other OSes, and this was the only work around that actually worked.
avilove4u said:
Solution for my problem ???
Click to expand...
Click to collapse
Check your private message Hope it works
edited wpa_supplicants don't work anymore on latest SGY update (july 22 2012)
edited wpa_supplicants don't work anymore on latest SGY update (july 22 2012)!!! HELP

Categories

Resources