[Rooted][Guide]Wifi Reverse Tether - Windows and Ubuntu - Ad Hoc Networks - Galaxy Y GT-S5360 General

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

Related

Wi-Fi security issue - IMPORTANT! please help

As a wifier with a pda2k , how does one know if he has been discovered by the network owner and in addition , where he has gone , not to mention the pda's security . My files can't be looked at can they? I need serious security assistance . My personal data may have allready been compromised! Damn .
Thank you.
(I'll just wait here on a secure network till I can secure my 'lil unit
Treat your PPC as if it were a portable computer running on celeron. As of the moment I can only recall maybe 4 known viri for Windows Mobile. If you are an avid WiFi'er as I am, try to browse your unit from your desptop pc without activesync activated. You might want to port scan the PPC as well. I run an FTP and web server on my unit (for my own purposes), and I have never had any files compromised unless I allow it. If you are really that peranoid, encrypt the files you don't want read without your permission.
Well I'm a Mac guy so browsing on a desktop won't happen. I just need to be able to surf annomously and not have the network owner view me or my files.
The netwqork admin will always know you are using the router because the wifi router assigns you an IP address. No getting around that. But it will be highly unlikely that he can access your unit resources unless you have a backdoor trojan running on your unit. If you don't know, google up "antivirus scanner for pocket pc", and install it.
Hey MACGUY have you seen PocketMAC? It could be useful!
SORRY i didnt mean to hijack your thread!
NOMADMAN - you said your are a wifi junky - How do I surf the net from my MDA3 using WIFI. Is appears that I can connect to my belkin wireless router but when I open IE - No page can be displayed and then it asks me to check my settings but then all the new connection settings doesnt include wifi connectivity? HELP!
meatychi said:
...How do I surf the net from my MDA3 using WIFI....HELP!
Click to expand...
Click to collapse
The are all kinds of info already posted here mate. What I would tell you here, I and many others have already posted in the past.
nomadman said:
The netwqork admin will always know you are using the router because the wifi router assigns you an IP address. No getting around that. But it will be highly unlikely that he can access your unit resources unless you have a backdoor trojan running on your unit. If you don't know, google up "antivirus scanner for pocket pc", and install it.
Click to expand...
Click to collapse
Thanks . I installed the viri scanner and found nothing. It maybe that the open AP is being tapped by someone else as well as me , explaining the third MAC address. Can this be possible? It's a ff.ff.ff.ff.ff

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.

Internet Sharing over WiFi

Windows Mobile 6 devices offer Internet Sharing feature for Bluetooth and USB. It works in this way that you start Internet Sharing application inside of your Windows Mobile phone and then other devices can share the Internet connection. What if you could fool Windows Mobile phone and instead of Bluetooth use WiFi? Would it be possible? Yes, it is:
how to use Internet Sharing over WiFi, which essentially makes the Hermes an Access Point.
Do the following:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc"
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).
I got this from a different website.
detailed information on this topic you can fined at
http://forum.xda-developers.com/showthread.php?t=332360
edward
Edward!! you rock! this has got to be the sweetest thing, since wm6..for me atleast, Im actually posting from my old hacked OSX x86, I really cant believe this worked, but it did.
Thanks a ton for sharing the info.
Edward, Can you plse explain why you set the wifi adaptor to a fixed IP?
The 192.168.1.1 is as far as I know only valid if the router has the 192.168.1 range. For me it should be 192.168.123. ...
Thx for an explanation.
a cab would be perfect!
Yes! A very nice feature; could this be put in as a cab?
Or better, in the comm manager.....
Anyone?
aeroke said:
Edward, Can you plse explain why you set the wifi adaptor to a fixed IP?
The 192.168.1.1 is as far as I know only valid if the router has the 192.168.1 range. For me it should be 192.168.123. ...
Thx for an explanation.
Click to expand...
Click to collapse
Your phone is now the router.
edward-riko
I tried the steps to the letter however, I am unable to connect. I tried on one device running Schaps 3.54c & the other vp3G. I get confused after I complete the step "select wireless tab then add new." The new wireless network shows unavailable on my device" I think I'm unsure how to configure the connection on the PC side. I'm unable to get the wireless configurator to allow me to input a specific IP address. I'm using Windows XP Pro. Any help would be greatly appreciated.
OK, I have been resisting, but why would you do this.
If you are using wifi to access the Internet, and the phone and PC both have wifi (in order to use wifi sharing), why not just access the wifi directly from the PC? Sorry to be thick, but I don't see why you would want this?
todd_jg said:
OK, I have been resisting, but why would you do this.
If you are using wifi to access the Internet, and the phone and PC both have wifi (in order to use wifi sharing), why not just access the wifi directly from the PC? Sorry to be thick, but I don't see why you would want this?
Click to expand...
Click to collapse
and if you don't have WiFi access to the Internet but only cellular access?
cp1md2b said:
edward-riko
I tried the steps to the letter however, I am unable to connect. I tried on one device running Schaps 3.54c & the other vp3G. I get confused after I complete the step "select wireless tab then add new." The new wireless network shows unavailable on my device" I think I'm unsure how to configure the connection on the PC side. I'm unable to get the wireless configurator to allow me to input a specific IP address. I'm using Windows XP Pro. Any help would be greatly appreciated.
Click to expand...
Click to collapse
play with this some more it will work in the end
do it systematically
edward
edward-riko said:
and if you don't have WiFi access to the Internet but only cellular access?
Click to expand...
Click to collapse
Hah! I knew I must have been missing something. Thanks.
WiFi & WM5?
Does this work on WM5? The instructions don't seem to match for me. Can someone tell me how to do this on WM5?
Nautme said:
Does this work on WM5? The instructions don't seem to match for me. Can someone tell me how to do this on WM5?
Click to expand...
Click to collapse
no it will not
THANK YOU
I have tried this out and it apprears to work pretty well- thank you so much, I had hoped this would be figured out. i had the idea to do this but not the technical know how.
This is awesome
but you know what would be also interesting?
to be able to share the wifi connection over Bluetooth or usb instead of the cellular.
Basically using the phone as a wifi adapter.
What say you?
titan 6800
Has any one gotten this to work with the 6800? The registry key for bluetooth is different.
Thanks
Garvin.
edward-riko said:
Do the following:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc"
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).
I got this from a different website.
Click to expand...
Click to collapse
Actually, it came from this site - we've been discussing it for days in the Development and Hacking forum! It was in this post by Fluxist who'd discovered it in the first place, and the other sites have been following suit... we're working on a more elegant way to do it now. And you directly quoted his post!
I'm going to be trying to write a full-on NAT router for it I think, although we're seeing if we can do a basic version for now.
man, i cannot belive this..
that is amazing
N2A said:
Actually, it came from this site - we've been discussing it for days in the Development and Hacking forum! It was in this post by Fluxist who'd discovered it in the first place, and the other sites have been following suit... we're working on a more elegant way to do it now. And you directly quoted his post!
I'm going to be trying to write a full-on NAT router for it I think, although we're seeing if we can do a basic version for now.
Click to expand...
Click to collapse
i took it from PPCGeeks forum
http://forum.ppcgeeks.com/showthread.php?t=9340
sorry if i a fended you in any way and good luck with your work
edward
killershot20 said:
This is awesome
but you know what would be also interesting?
to be able to share the wifi connection over Bluetooth or usb instead of the cellular.
Basically using the phone as a wifi adapter.
What say you?
Click to expand...
Click to collapse
I was thinking the same thing. I frequently stay in foreign hotels in which are "unwired." I'd love to use my phone as the registered device when buying wifi so that I could make VOIP calls and check my e-mails on ground and tether it to my notebook back in the roam. In Dubai, you can get hooked for $30 a day for wifi.
edward-riko said:
i took it from PPCGeeks forum
http://forum.ppcgeeks.com/showthread.php?t=9340
sorry if i a fended you in any way and good luck with your work
edward
Click to expand...
Click to collapse
Heh, it's cool dude - PPCGeeks got it from us - but check your research ;-) No point having duplicate threads.

Desire to use PC's internet

Is there anyway I can have my desire use my PC's internet when it is connected via usb?
At this stage I dont have wifi at work and cant use that method.
Essentially I want to reverse the direction of tethering when the phone is connected to my computer.
Thanks, Dean
Unfortunately, reverse tethering or connecting the phone through computer's Internet connection (through an ad hoc wifi) is not possible, which is quite annoying. It would be nice if this type of feature, although highly unlikely, could be incorporated an upcoming ROM update for example.
That is annoying, especially since I could do this with my old WM - although thanks for the reply and info.
I wonder if it could be done through an app perhaps.
Cheers, Dean
dwphoto said:
That is annoying, especially since I could do this with my old WM - although thanks for the reply and info.
I wonder if it could be done through an app perhaps.
Cheers, Dean
Click to expand...
Click to collapse
Yes it's extremely annoying. I had this on my HD and HD2, but i really don't know why HTC could not incorporate this with the Desire. Afterall, it's a desirable (excuse pun) feature.
it has nothing to do with your phone, since it all depends on the host computer. On mac: you can do it easily by sharing your internet connection in system preferences.
MasDroid said:
Unfortunately, reverse tethering or connecting the phone through computer's Internet connection (through an ad hoc wifi) is not possible, which is quite annoying. It would be nice if this type of feature, although highly unlikely, could be incorporated an upcoming ROM update for example.
Click to expand...
Click to collapse
maybe i misunderstood you, but its perfectly possible to make an adhoc wifi network, and connect to the internet on your desire
pina_ said:
it has nothing to do with your phone, since it all depends on the host computer. On mac: you can do it easily by sharing your internet connection in system preferences.
Click to expand...
Click to collapse
it has everything to do with your phone. If the phone has no interface for it, it won't work.
Can't say whether it works or not, just saying that it does not depend solely on your computer
ziao said:
maybe i misunderstood you, but its perfectly possible to make an adhoc wifi network, and connect to the internet on your desire
Click to expand...
Click to collapse
I dont think so ... I have tried and also read that it doesnot work!
rackspace said:
I dont think so ... I have tried and also read that it doesnot work!
Click to expand...
Click to collapse
odd, because i use it nearly everyday
So does this mean I can do it or not ?
Do I need and ad-hoc wifi network - what exactly is this ?
Thanks
dwphoto said:
So does this mean I can do it or not ?
Do I need and ad-hoc wifi network - what exactly is this ?
Thanks
Click to expand...
Click to collapse
If your computer has a wifi card (laptops usually do, desktops don't) you can create a local network and connect your desire to it.
No idea if it's possible over a wire
You don't need to create an ad-hoc network, just download connectify and use it as a hotspot on your laptop, then connect the Desire to the hotspot you just created and that's it.
neur0x said:
You don't need to create an ad-hoc network, just download connectify and use it as a hotspot on your laptop, then connect the Desire to the hotspot you just created and that's it.
Click to expand...
Click to collapse
Ahh that is handy!
Thanks for the tip
I created an adhoc network following this: http://www.microsoft.com/windowsxp/using/networking/setup/adhoc.mspx
The host laptop itself can see the adhoc network, but desire cannot.
Any ideas?
Maybe I'm wrong but AFAIK Desire can't 'see' ad-hoc networks, only access points. You can get internet from PC, but only using Connectify under Windows 7 or by using advanced magic under Linux.
Am I right or something has changed lately?
BTW: does anybody share internet from Linux? Any suggestions?
As far as i know, you can only see an ad-hoc network if you have the desire rooted and change some files somewhere (can't remember which ones...), either way the next best thing is to use some kind of software that creates an Wifi Access Point.
I don't get it: why would you want to connect to the internet via your PC instead of directly connecting to your WiFi router ?
Maybe when you only have a LAN-connection?
Or Maybe when your in Work and only have a Lan Setup
and want to access / download things on your phone,
Reverse USB tethering would be AMAZING!!!!!
Flaggie said:
Maybe when you only have a LAN-connection?
Click to expand...
Click to collapse
Stupid me, just hadn't realized that still not everyone has a WiFi capable router nowadays...
The problem with ad-hoc internet sharing is that your host PC still needs a WiFi connection. You can't use internet through USB. I've tried it yesterday at work (yes, for the Froyo update ), but no succes.
Having a smartphone in a country with high mobile data costs is like having a Ferrari to do your local grocery shopping Fortunately I'll have unlimited mobile internet next week. So I can finally use my Desire as intended.

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

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.

Categories

Resources