[Q] moto g - using PC broadband on moto g - Moto G Q&A, Help & Troubleshooting

Hi,
I own a moto g and I have a broadband connection on my PC. Is there any way I use that to access internet on my moto g ?
If there is please explain.
Thanks & Regards
Gilagamesh

gilagamesh said:
Hi,
I own a moto g and I have a broadband connection on my PC. Is there any way I use that to access internet on my moto g ?
If there is please explain.
Thanks & Regards
Gilagamesh
Click to expand...
Click to collapse
do you have a desktop or a laptop ..
if desktop then you should try some apps like reverse USB tethering ..which are very simple to use ..
there are too many apps like this which you can find on the play store ..
Sent from my GT-I9300 using XDA Premium 4 mobile app

Thru Ethernet cable? If so change your modem to WiFi modem if using from data card use WiFi dongle search ebay
Sent from my XT1033 using Tapatalk

Well if you are on laptop...you can use this software known as Connectify to set up a Hotspot on ur laptop
You can do that with a wifi adapter on a PC too

jaspreet997 said:
Well if you are on laptop...you can use this software known as Connectify to set up a Hotspot on ur laptop
You can do that with a wifi adapter on a PC too
Click to expand...
Click to collapse
By the way I am using a Desktop PC and I don't have a Wifi adapter. But can't I use usb cables for connecting internet on my mobile? I that mandatory that I purchase a Wifi adapter?

gilagamesh said:
By the way I am using a Desktop PC and I don't have a Wifi adapter. But can't I use usb cables for connecting internet on my mobile? I that mandatory that I purchase a Wifi adapter?
Click to expand...
Click to collapse
Not at all
There are some reverse tethering apps to get ur pc's internet just by USB cable but they need a rooted phone!
Search on play store " reverse tethering"
If you don't wanna root....invest in a router...they are pretty cheap nowdays!
Sent from Samsung Chat

@gilagamesh
You can do it without using any apps ...u just have to enter some commands in ur PC and ur phone by terminal emulator.. Will help u PM me..
NOTE:: Root is required .
Sent from my XT1033 using xda premium

You can setup an ad hoc wifi network and share the internet connection to connected devices.
You can do it using the Control Panel or using the CMD.
In Windows 8 this functionality ist not available anymore using the GUI.
These commands should work on all windows pc's.
Replace ssid and key with your own if wanted.
Remember to open CMD with admin rights.
To configure adhoc network typ in CMD:
netsh wlan set hostednetwork mode=allow ssid=NameForMyNetwork key=MySecurityKey
Click to expand...
Click to collapse
To start adhoc network type in CMD:
netsh wlan start hostednetwork
Click to expand...
Click to collapse
To stop adhoc network type in CMD:
netsh wlan stop hostednetwork
Click to expand...
Click to collapse
Open properties of your network adapter on PC and you'll find an option to share the internet connection of connected devices of the specific adapter.
Connect your Android over wifi to your PC, voila, you should be done if i did not forget something.......
EDIT:
Aaaargh.....just saw it by reading it the thread a second time....you have no wifi.
But anyway, maybe it helps somebody else.

mokkami said:
You can setup an ad hoc wifi network and share the internet connection to connected devices.
You can do it using the Control Panel or using the CMD.
In Windows 8 this functionality ist not available anymore using the GUI.
These commands should work on all windows pc's.
Replace ssid and key with your own if wanted.
Remember to open CMD with admin rights.
To configure adhoc network typ in CMD:
To start adhoc network type in CMD:
To stop adhoc network type in CMD:
Open properties of your network adapter on PC and you'll find an option to share the internet connection of connected devices of the specific adapter.
Connect your Android over wifi to your PC, voila, you should be done if i did not forget something.......
EDIT:
Aaaargh.....just saw it by reading it the thread a second time....you have no wifi.
But anyway, maybe it helps somebody else.
Click to expand...
Click to collapse
A simpler way to go at it is a software called Connectify....completely gui based...I used to use it all the time on my laptop.....works on windows xp sp3 and up....
Sent from Samsung Chat

@mokkami
This is to create a wifi hotspot ...and as i see the person is using a desktop he might not have a wifi card...and even if u dn have wireless network connection 2 adapter you would notbe able to even create Wifi hotspot from a laptop ....and it does need service pack3 for windows 7
---------- Post added at 02:27 PM ---------- Previous post was at 02:23 PM ----------
I Dont remember the original thread but here are the contents i got fromthat link a while ago...
@gilagamesh
Step 1: Connect your Android to PC by USB cable and enable "USB tethering". You are still allowed to enable this option even when your 3g/wifi on your Android is off.
- If you are using Linux (Ubuntu), you don't need to install anything. NetworkManager applet will try to establish a connection on the new detected wired network device.
- If you are using Windows, Windows will automatically search Windows Update and install driver for you. You can skip Windows Update search and install manually an already included driver from Microsoft. In Install Driver window, click Browse My Computer, then Let me pick..., select Network Adapters, uncheck Show Compatible Hardware, look at "Microsoft Corporation" at the left column, and choose Remote NDIS Compatible Device from the right column. You can install or update a driver from Device Manager in Windows.
- If you are using Mac, install driver HoRNDIS. You will be notified about a new network interface. Click "Network Preferences" in the dialog to add it to known interfaces list. Then "Apply".
- If you are using Linux without GUI or NetworkManager, run these commands as root (or use sudo):
Code:
ifconfig usb0 10.42.0.1 netmask 255.255.255.0
(suppose that you don't have any other USB network adapter, otherwise, your Android may be usb1, usb2...)
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
Command for sudo will be:
Code:
sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward'
Code:
iptables -t nat -F
iptables -t nat -A POSTROUTING -j MASQUERADE
Step 2:
- If you are using Linux, click on NetworkManager applet at the top right of your screen, select "Edit Connections...". In tab "Wired", choose the new established connection (be careful, not Ethernet LAN connection) and click "Edit..." In tab "IPv4 Settings", choose "Shared to other computers" as Method. Click "Save". NetworkManager will reestablish the connection and assign to your PC an IP address on this USB network connection, default: 10.42.0.1. Leave Internet connections (wired or wireless) untouched.
- If you are using Windows, open "Network Connections" in Control Panel. It is somewhat different from setup in Linux. Right click on an Internet connection that you have. I assume that you are using a desktop which doesn't have any wifi adapter, so right click on LAN Ethernet connection with Internet, and select "Properties". In tab "Sharing" (or "Advanced" for Windows XP), click "Allow other network users to connect through...", then select the USB connection in dropdown list below. Click OK. Windows will automatically setup your USB network connection and assign to it an IP address, default for Windows 7: 192.168.137.1, default for Windows XP: 192.168.0.1. You can see your Internet connection is now "Shared" and your USB connection is now "Unidentified network".
- If you are using Mac, open System Preferences - Network. If you installed HoRNDIS, you will see a new network interface corresponding to your USB connection. With "Using DHCP" as Configure Ipv4, it may be already connected. Go back to System Preferences, click "Sharing". Select "Internet Sharing". Choose the Internet connection (Ethernet or Airport...) in "Share your connection from", and choose USB connection interface in "To computers using". Mac will assign to your USB connection interface an IP address, default: 192.168.2.1.
- If you are using Linux without GUI or NetworkManager, you have done all PC setup in step 1.
Your PC setup is now done!
Step 3:
Open Terminal Emulator on your Android. Type:
Code:
su
The command prompt must change from $ to #. If it does not, check to ensure that your device is rooted properly.
[UPDATED]Type the following command in Terminal Emulator, the same for all PC operating systems:
Code:
netcfg rndis0 dhcp
The name for usb interface inside Android may vary. It is usually rndis0 or usb0. Type
Code:
busybox ifconfig
to identify the name.
Use OLD instructions below when automatical dhcp method does not work.
[OLD]Type these following commands in Terminal Emulator:
For Linux PC:
Code:
ifconfig rndis0 10.42.0.2 netmask 255.255.255.0
route add default gw 10.42.0.1 dev rndis0
If route fails, try:
Code:
busybox route add default gw 10.42.0.1 dev rndis0
For Windows PC, use the same above commands, replace 10.42.0.2 by 192.168.137.2 (192.168.0.2 for Windows XP), replace 10.42.0.1 by 192.168.137.1 (192.168.0.1 for Windows XP)
For Mac PC, replace 10.42.0.2 by 192.168.2.2, replace 10.42.0.1 by 192.168.2.1
Now you can close Terminal Emulator and start the browser for Internet.
Some applications (download in Google Play, GMail, Facebook...) don't recognize Internet connection. You can try this way (WARNING: NOT TESTED):
- Enable temporarily 3G connection on your Android
- Type:
Code:
ifconfig rmnet0 0.0.0.0
The name for 3G interface inside Android may vary: ppp0, rmnet0... Type
Code:
busybox ifconfig
to identify the name.
before ifconfig rmnet0 ... above.
This will make applications see your Internet connection via USB as 3G!
And it works !!!

Yes it is to create a hotspot. And i wrote already that i read it to late that he has no wifi available.
prachetas13 said:
and even if u dn have wireless network connection 2 adapter you would notbe able to even create Wifi hotspot from a laptop
Click to expand...
Click to collapse
I do not understand what you mean. I created a wifi hotspot sucessfully on my netbook which was also connected via network cable.

mokkami said:
Yes it is to create a hotspot. And i wrote already that i read it to late that he has no wifi available.
I do not understand what you mean. I created a wifi hotspot sucessfully on my netbook which was also connected via network cable.
Click to expand...
Click to collapse
Its like most of them dn have those adapters ...i have thinkpad L430 but nt able to share internet ...but on my dell laptop it was easier ...i havetried a lot but netsh wlan commands doesnot work ...not even by connectify ...in the other hand it works good on my other laptop ...
well not losing the oroginal topic ...i have provided a method of reverse tethering ..

Related

Connect G1 to ad hoc or usb to use pc internet

Hello. I have searched the forums but can't find a solution that works for me.
I need to connect my g1 to my laptop Wi-fi connection or at least via USB using adb shell. Can someone help me. I live in a country with very expensive 3g
data and cannot afford downloading apps. Any help will be appreciated.
I have rooted G1 with JF rc33
Why not get a wireless router?
/Mats
for example at work...
Edit : Nvm just reread ur post
Just get a wireless router or use the ad hoc thing for laptops, google search it
http://www.wi-fiplanet.com/tutorials/article.php/1451421
Пробвай това: http://junefabrics.com/android/index.php
Try this: http://junefabrics.com/android/index.php
;-)
Thanks
Well, getting a wireless router just to connect my G1 from time to time seems like a waste of money to me.I have read some articles about G1 and ad hoc networks and it seems that it is not possible at this moment to connect the device to a laptop. Actually I used to connect a PPC this way but the G1 won't even detect the ad hoc network i create. Well, if there isn't any other solution I guess the wireless router will be the last resort then. About PdaNET- i think it does just the opposite - it connects your PC to the internet using your phone. Isn't there any way to reverse teether using adb shell and usb cable?
Come on, is it really impossible to reverse tether using adb shell fo rexample, cant anyone with more knowledge give a solution please.
I was looking for something else and came across this post. I decided, even though it's ANCIENT, that someone might want to do the same, so I went to Google and searched for "Reverse tether G1 android". Within 5 minutes I had the answer.
http://androidcommunity.com/forums/291099-post8.html
It does require you to do a little command-line work on the G1 itself (or through ADB on the command prompt of the computer) but it appears it can be done.
HIH.
try this
Close any program that uses internet on your PC, connect your phone, turn on USB tethering. You would see a new virtual network adapter in your PC, enable internet sharing on that adapter as described in this article(hxxp://support.microsoft.com/kb/306126). The adapter's ip address would change to 192.168.0.1 with netmask of 255.255.255.0.
Then input the following codes line by line in your phone's terminal, you could download GScript(hxxp://code.google.com/p/gscript-android/) to do the job or just save it as a .sh file with 755 permission and run it when you want.
Code:
busybox ifconfig usb0 192.168.0.2 netmask 255.255.255.0
busybox route delete default
iptables -F
iptables -F -t nat
busybox route add default gw 192.168.0.1
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
You would need to keep your GPRS/Edge connection on to trick programs into thinking that you have an internet connection, but all your phone's data is now routed thru your PC. Confirm this by checking if the GPRS/Edge icon on the top has those up and down arrows in it.
And to disable this, you simply turn off USB tethering and restart your GPRS/Edge connection.
OMG I just replied a post of 23rd March 2009, 09:13 PM! Don't think axlastro is needing this anymore. lol
@test1943
nice, I have been looking for this but...
how do I disable this properly?
To "restart your GPRS/Edge connection" I put my phone into airplane mode and then back to normal but it still couldn't connect to the network?? so I just rebooted and now that works.
But now my phone isn't recognized by my pc when I plug in the usb??
Any help.
oops let me take that all back. reboot, re-plugin and pc finds my phone again. tested again and it works as described.
Sweet Thanks
can this be done using root explorer?
I don't think so.
I just used gscript lite (free on the market)
I saved the stuff from test1943 in notepad as USBTether.sh, copied to my sdcard into the gscript folder.
Open gscript, push menu > add script. Click load file and select the USBTether.sh.
Made sure su was checked and clicked save.
Created a shortcut on the homescreen for this script.
1. Enabled Usb Tether
2. ran script
3. ???
4. profit.
Sleeepy2 said:
@test1943
nice, I have been looking for this but...
how do I disable this properly?
To "restart your GPRS/Edge connection" I put my phone into airplane mode and then back to normal but it still couldn't connect to the network?? so I just rebooted and now that works.
But now my phone isn't recognized by my pc when I plug in the usb??
Any help.
oops let me take that all back. reboot, re-plugin and pc finds my phone again. tested again and it works as described.
Sweet Thanks
Click to expand...
Click to collapse
The easiest way to disable this(I think we could call it reverse USB tethering) was to use an APN switch, the "APN on-off Widget" in the market seems to do the job right. Turn off USB tethering, switch off APN, then switch on and you are good to go.
And Sleeepy2, how do you mean by "not recognized by my pc", is it in storage mode or debug mode?
plumppp said:
can this be done using root explorer?
Click to expand...
Click to collapse
I think he is referring to the root explorer by Gpc, a Taiwanese. Never used that app, but judging by its description it could turn on/off APN just like the "APN on-off Widget" did.
Sleeepy2 said:
I don't think so.
I just used gscript lite (free on the market)
I saved the stuff from test1943 in notepad as USBTether.sh, copied to my sdcard into the gscript folder.
Open gscript, push menu > add script. Click load file and select the USBTether.sh.
Made sure su was checked and clicked save.
Created a shortcut on the homescreen for this script.
1. Enabled Usb Tether
2. ran script
3. ???
4. profit.
Click to expand...
Click to collapse
ok thanks, gonna give it a try now
Edit: is this step necessary? im using vista and can't seem to find it.. can i skip it?
# Log on to the client computer as Administrator or as Owner.
# Click Start, and then click Control Panel.
# Click Network and Internet Connections.
# Click Network Connections.
# Right-click Local Area Connection, and then click Properties.
# Click the General tab, click Internet Protocol (TCP/IP) in the This connection uses the following items list, and then click Properties.
# In the Internet Protocol (TCP/IP) Properties dialog box, click Obtain an IP address automatically (if it is not already selected), and then click OK.
Note You can also assign a unique static IP address in the range of 192.168.0.2 to 192.168.0.254. For example, you can assign the following static IP address, subnet mask, and default gateway:
IP Address 192.168.0.2
Subnet mask 255.255.255.0
Default gateway 192.168.0.1
plumppp said:
ok thanks, gonna give it a try now
Edit: is this step necessary? im using vista and can't seem to find it.. can i skip it?
# Log on to the client computer as Administrator or as Owner.
# Click Start, and then click Control Panel.
# Click Network and Internet Connections.
# Click Network Connections.
# Right-click Local Area Connection, and then click Properties.
# Click the General tab, click Internet Protocol (TCP/IP) in the This connection uses the following items list, and then click Properties.
# In the Internet Protocol (TCP/IP) Properties dialog box, click Obtain an IP address automatically (if it is not already selected), and then click OK.
Note You can also assign a unique static IP address in the range of 192.168.0.2 to 192.168.0.254. For example, you can assign the following static IP address, subnet mask, and default gateway:
IP Address 192.168.0.2
Subnet mask 255.255.255.0
Default gateway 192.168.0.1
Click to expand...
Click to collapse
Sorry for the confusion, that article was for XP only. Check this one for Vista: hxxp://windows.microsoft.com/en-US/windows-vista/Using-ICS-Internet-Connection-Sharing
Notice: the network adapter you'll be working on should NOT be "Local Area Connection" because that's your PC's adapter. If you should have enabled USB tethering on your phone, you should see NEW one(i.e. it was not there before you turn on tethering), in my Windows 7, it was named "Local Area Connection 2".
test1943 said:
And Sleeepy2, how do you mean by "not recognized by my pc", is it in storage mode or debug mode?
Click to expand...
Click to collapse
I mean after disabling usb tether, unplug usb, then plug it back in. The pc did nothing. Didn't recognize that I even plugged it in. Must be something that I did because it works great now.
I just need to figure out how to us gscript to enable USB Tether then I can do it all with 1 shortcut.
Then another 1 to disable USB Tether, disable apn and then re-enable apn.
test1943 said:
Sorry for the confusion, that article was for XP only. Check this one for Vista: hxxp://windows.microsoft.com/en-US/windows-vista/Using-ICS-Internet-Connection-Sharing
Notice: the network adapter you'll be working on should NOT be "Local Area Connection" because that's your PC's adapter. If you should have enabled USB tethering on your phone, you should see NEW one(i.e. it was not there before you turn on tethering), in my Windows 7, it was named "Local Area Connection 2".
Click to expand...
Click to collapse
ok thanks, gonna try this again
Edit: sorry if im beginning to become an annoyance.. but when i run the script i get "stderrr Script execution failed" "no such process network is unreachable"
Su is checked, i also removed tex. and added sh
plumppp said:
ok thanks, gonna try this again
Edit: sorry if im beginning to become an annoyance.. but when i run the script i get "stderrr Script execution failed" "no such process network is unreachable"
Su is checked, i also removed tex. and added sh
Click to expand...
Click to collapse
Please type in each line to see which line produces error. And may I ask which ROM are you using? Remember to su first.
test1943 said:
Please type in each line to see which line produces error. And may I ask which ROM are you using? Remember to su first.
Click to expand...
Click to collapse
okay thanks again, i'll do it manually one at a time. i'm using cyanogen 307 nightly
Edit: okay.. i didn't even get pass the first line lol..
i'm assuming its the rom.. when typing "busybox ifconfig usb0 192.168.0.2 netmask 255.255.255.0"
i get: [ifconfig: socket: Permission denied]
which rom are you using?
plumppp said:
okay thanks again, i'll do it manually one at a time. i'm using cyanogen 307 nightly
Edit: okay.. i didn't even get pass the first line lol..
i'm assuming its the rom.. when typing "busybox ifconfig usb0 192.168.0.2 netmask 255.255.255.0"
i get: [ifconfig: socket: Permission denied]
which rom are you using?
Click to expand...
Click to collapse
That seems to be a root problem to me, does other root-required apps work right?

[REQ] Reverse wired tethering

Before i start i want to let people know YES I DO HAVE A WIRELESS ROUTER!! So please do not respond telling me to just go buy a router.
REQUEST - Reverse wired tethering. I.E. Sharing PC's iNet connection with your phone via USB.
REASON - My university's wireless is locked down and does not allow mobile phones, pda's to connect up to our wireless without submitting MAC for approval. Looking to sync certain apps without using my data connection.
I dont know if anyone has played around with trying to get this working or not. I know its a small market of people who may be interested in this, but for certain places (CANADA) where data charges are WAY to expensive this could be handy for students at UNI where wireless is not an option.
get a second wifi adapter on your laptop, and share your uni wireless network connection with the second wifi adapter. Use a hidden SSID, then no one will know what is going on
This was asked a couple of times before here and I remember people saying you couldn't reverse the tethering.You could try though.
alexperkins said:
get a second wifi adapter on your laptop, and share your uni wireless network connection with the second wifi adapter. Use a hidden SSID, then no one will know what is going on
Click to expand...
Click to collapse
Thats a good idea xD
Hey guys,
I have been trying to find a way to do this for a long time.
The best solution i have found (actually the only solution) is Connectify. The only downside is you must have Win7.
What it does is turns your wifi adapter into a HotSpot, even if you are using wifi to get the net in the first place. Its a great tool and should be what your after.
http://www.connectify.me/
memphisraynz said:
Hey guys,
I have been trying to find a way to do this for a long time.
The best solution i have found (actually the only solution) is Connectify. The only downside is you must have Win7.
What it does is turns your wifi adapter into a HotSpot, even if you are using wifi to get the net in the first place. Its a great tool and should be what your after.
http://www.connectify.me/
Click to expand...
Click to collapse
thank you so much for this
Your best solution is the WiFi adapter. You could most likely get away with a SOCKS proxy over USB, possibly using adb, but it would be complicated, unstable, and messy.
I still don't know you just don't use your wireless router. I assume they have wired. Clone your PC's mac address and hook it up. Universities are retarded with that crap. They have the worst networks and security.
If no wired, then what podunk place is it? haha
Even if they had only wireless , you could set up a wlan client and repeat it. DDWRT, etc, ftw.
Just get backtrack for your laptop and spoof your mac to all 0 then grab connect to the network at your school the spoofed mac will allow you to browse so long as no other encyption is on the network such as WEP or WPA.
then you can try to flood all the ports on the network so no one else can connect then spoof your phones mac by conneecting to your laptop through wireless as an adhoc connection and while staying connected through adhoc load a second server through the same wireless network card and you can connect to the achools network again. and walla...
death1246 said:
Just get backtrack for your laptop and spoof your mac to all 0 then grab connect to the network at your school the spoofed mac will allow you to browse so long as no other encyption is on the network such as WEP or WPA.
then you can try to flood all the ports on the network so no one else can connect then spoof your phones mac by conneecting to your laptop through wireless as an adhoc connection and while staying connected through adhoc load a second server through the same wireless network card and you can connect to the achools network again. and walla...
Click to expand...
Click to collapse
so simple, i dunno why i didnt think of that. thanks! lol
Well its quit simple once you learn your way around linux...
If you have any experience with *nix, you may want to look at Cyanogen's original usb tether shell script:
http://github.com/cyanogen/android_vendor_cyanogen/blob/master/bin/usb-tether
Basically you could use the internet connection sharing function that comes with all popular OSes and access your uni's network on your phone. You must have Cyanogen mod or another mod using his kernel. Not yet working on OSX for some reason. Tested under Windows 7.
First you'll need to figure out what IP address range your computer's DHCP server is using. This is normally fixed for each OS. For Windows 7, it's always 192.168.137.0/24.
For OSX or Linux, you can setup connection sharing (for some other connection because we don't have the USB interface yet) and ifconfig.
Second is to enable the USB connection on the phone's side. Type the following command in any console program, like Connectbot. (You must use a console program as opposed to adb because you will lose USB debugging once the USB network interface is enabled.)
Code:
su
cd /sys/devices/virtual/net/usb0
ifconfig usb0 192.168.137.200 mask 255.255.255.0
echo 1 > enable
The first line makes you the superuser. (Skip if the command prompt is #)
The second line land you in usb0's directory under sys. We'll need to type the disable command later, so it's easier if we're here.
The third line brings up the virtual usb network interface and sets its IP address.
The IP address should be in the same network (i.e. IP address range) you obtained in step 1. Say if the original is 192.168.137.1 in a /24, you can use 192.168.137.2 through 192.168.137.254
This actually enables the usb interface.
You will now see a new network adapter is recognized by your computer. Set up connection sharing to share your internet TO that adapter.
Make sure you have connection by pinging your computer from your phone.
For example:
ping 192.168.137.1
Now you'll have to change the routes so traffic go through the USB cable instead of the mobile network.(# is the command prompt, do not enter)
# busybox route
check the line starting with "default". Write down the ip address after it; call it IP1.
# getprop net.dns1
Call the IP returned IP2.
Code:
busybox route del default gw IP1
busybox route add -host IP2 rmnet0
busybox route add default gw 192.168.137.1
The first line deletes the old default route via the mobile network.
The second line adds an "exception" for your carrier's DNS server.
The third line adds the new route via USB. You should replace the address at the end with the IP address from the first step.
Your network should be working now. Test by visiting some website that is only available on campus or by traceroute.
You must make sure the mobile network is always connected though. This is because domain names are still resolved by your mobile carrier. If you ever lose your mobile connection, the routing table will be changed as well.
To disconnect:
Make sure you're still in /sys/devices/virtual/net/usb0.(Use pwd if unsure.)
Code:
netcfg usb0 down
echo 0 > enable
The usb interface will disappear on your computer.
Now switch the phone to airplane mode and back to re-enable mobile network.
The disconnect step should always restore your phone's state.
// This is written at 3am, so use it at your own risk...
help?
look at this
http://superuser.com/questions/91699/spoof-mac-address-from-ip-command
bg
It's really sad that Android can't reverse tether. If you want to use your laptop's AdHoc connection you have to do serious hacking to the tiwlan.ini and the wpa_supplicant.conf. There is no way to connect via bluetooth ar USB.
I'm seriously considering WP7 now for my next OS of choice... A nd for everyone saying "go buy a router" - go buy a router and stick it up your .... nose.
Hi,
I have the same problem. No WiFi in my work and no WiFi in my current home (a Resident Hall). There's no possibility to buy a WiFi router, of course. I tried to hack the system to connect ad-hoc networks but it didn't work.
I have found some interesting resources:
sluniverse.com/php/vb/blogs/psyke+phaeton/1042-making-android-phone-use-your.html
letsgoustc.spaces.live.com/blog/cns!89AD27DFB5E249BA!877.entry
I have a HTC Magic with the ADP-DRC83 hacked ROM with Usb tethering integrated. But usb0 interface in the mobile is configured to provide Internet connection (as gateway) to the PC, not the reverse functionality: connecting the mobile to Internet through the PC. So, all I need is to change the gateway in Android and then configure a NAT-DNS in my linux PC (easy with iptables and dnsmasq). But, I don't know how automatize the process exactly.
digitaljeff said:
but for certain places (CANADA) where data charges are WAY to expensive this could be handy for students at UNI where wireless is not an option.
Click to expand...
Click to collapse
Wind will be launching in vancouver soon.
$35 unlimited data.
Silly ragin' cajun.
Ok, now it works. Here it's my procedure for a HTC Magic (Sapphire) without any APN previously configured from Telecom provider and ROM CSDIv4.
In the mobile by using Better Terminal:
Code:
su
cd /sys/devices/virtual/net/usb0
echo 1 > enable
ifconfig usb0 192.168.2.2 mask 255.255.255.0
busybox route add default gw 192.168.2.1
setprop net.dns1 8.8.8.8
In the linux computer:
Code:
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i usb0 -j ACCEPT
sudo ifconfig usb0 192.168.2.1 netmask 255.255.255.0
Android Market downloads and location service don't work but I think is possible if you switch on the WiFi.
Update: Syncronization, Android Market downloads and location service don't work even the WiFi antenna is switched on. I have added the iptables commands also.
Well gosh, reverse wireless tethering is so much simpler
There are another similar thread: http://forum.xda-developers.com/showthread.php?t=522498

[Tips]Access internet via USB net: share Windows internet connection to android phone

I tested accessing internet in Android phone via USB net which connected to a Windows XP PC, pure wired, not wireless solution I Googled.
It works! However, some application does not designed to use USB net, these application only use WiFi or GPRS/EDGE/HSPA to access internet.
My environment:
Windows: XP
Phone: Huawei U8800, Android 2.3.5
Internet: Ethernet (ADSL+router infact)
For those people who don't have WiFi, can't use WiFi (care about baby's health?), don't want to use WiFi/GPRS/EDGE/HSPA (expensive?), here is the tips to let you access internet via USB net.
How to do
Your android phone must be rooted first
Install Microsoft ActiveSync on your Windows PC
Install Terminal Emulator application on your android phone from market.
Connect your phone to your Windows PC
On your phone, turn on USB tethering: Settings -> Wireless & networks -> Tethering & portable hotspot -> USB tethering
Now, look at your Windows system, there will be a new network card (Windows Mobile-based Internet Sharing Device) appears
Share your internet connection to the new network card: right click internet connection (PPPoE or Ethernet or WiFi or whatever your internet connection is) -> Property -> Advance -> Enabled internet connection sharing. (if your Windows Firewall service is not started, start it first), this will change the IP address of new network card to 192.168.0.1/255.255.255.0
Now back to your phone, open the Terminal application, type commands like the following
Code:
su
ip addr add 192.168.0.2/24 broadcast 192.168.0.255 dev usb0
route add default gw 192.168.0.1 dev usb0
setprop net.dns 192.168.1.1
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
# the DNS server should change to your favorite DNS server, 192.168.1.1 is for my environment (a router)
DONE! turn your phone WiFi off, open a browser, you can surfering now, but as I tested, some other application won't work (or work well), they don't know USB net
Compatible/Incompatible applications
I tested few applications, found some compatible and incompatible applications, I will list them here, if you found incompatible applications, please help fill these lists.
++ Compatible ++
Generally, most browser or browser-like application works with USB net.
XDA
Browser
Gmail
Google Map
News & Weather
QQ
SoSo Map
新蛋商城/Newegg Mall China
Opera Mobile Browser
-- Incompatible --
Market: can browse, but can't download application
Weather Clock: can't update weather
QQGame: can login, but can't enter room to play
Google Voice recognition applications like Voice Search
YY: can't login
Jingdong Mall/京东商城: can't login
Proxy issue
For environment which need proxy to access internet, there're very few applications support it. Currently, I only know Opera Mobile browser works in such environment, there're proxy configurations in opera:config page.
very good work >>>
perfect solution
keep working and you might find easier solution .
ELRAKAWY said:
very good work >>>
perfect solution
keep working and you might find easier solution .
Click to expand...
Click to collapse
An easier way already exists: http://forum.xda-developers.com/showthread.php?t=1371345.
Theonew said:
An easier way already exists: http://forum.xda-developers.com/showthread.php?t=1371345.
Click to expand...
Click to collapse
capslock66 really did a great and expert job both on Android and Windows.
My solutions is some kind of clean & manual one, no application is needed on Android phone, no router-like client application is needed on Windows PC, let "Windows Firewall/Internet Connection Sharing (ICS)" service do the internet sharing magic.
I shared internet between two Windows PC before (install 2 network cards on host PC), so I think it should be same when the client PC changed to an Android phone, that's how this solution came out.
Hey
lovetide said:
How to do
Your android phone must be rooted first
Install Microsoft ActiveSync on your Windows PC
Install Terminal Emulator application on your android phone from market.
Connect your phone to your Windows PC
On your phone, turn on USB tethering: Settings -> Wireless & networks -> Tethering & portable hotspot -> USB tethering
Now, look at your Windows system, there will be a new network card (Windows Mobile-based Internet Sharing Device) appears
Share your internet connection to the new network card: right click internet connection (PPPoE or Ethernet or WiFi or whatever your internet connection is) -> Property -> Advance -> Enabled internet connection sharing. (if your Windows Firewall service is not started, start it first), this will change the IP address of new network card to 192.168.0.1/255.255.255.0
Now back to your phone, open the Terminal application, type commands like the following
Code:
su
ip addr add 192.168.0.2/24 broadcast 192.168.0.255 dev usb0
route add default gw 192.168.0.1 dev usb0
setprop net.dns 192.168.1.1
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
# the DNS server should change to your favorite DNS server, 192.168.1.1 is for my environment (a router)
DONE! turn your phone WiFi off, open a browser, you can surfering now, but as I tested, some other application won't work (or work well), they don't know USB net
Click to expand...
Click to collapse
Hey
first of all, thank you so much for your article.
I really need to do this.
anyways, my questions
what's a "rooted android phone" ?
and how do I "Install Terminal Emulator application on my android phone" ?
I'm sorry but I just bought my phone and I don't know much about it
I tried to copy-paste it in my SD Memory but it didn't work
and by the way I didn't download it from Market (because GPRS is so damn expensive in here ), instead I downloaded it from developer's website (jackpal).
thanks again
I really appreciate it o7
Yea you lost me once I found out that in order for this to work I had to install
Microsoft Active Stink.
One of the things I hated about Windows Mobile was its reliance on that crappy software and I don't want it on my new PC.
Arash.Eternal said:
what's a "rooted android phone" ?
and how do I "Install Terminal Emulator application on my android phone" ?
I'm sorry but I just bought my phone and I don't know much about it
I tried to copy-paste it in my SD Memory but it didn't work
and by the way I didn't download it from Market (because GPRS is so damn expensive in here ), instead I downloaded it from developer's website (jackpal).
thanks again
I really appreciate it o7
Click to expand...
Click to collapse
Since you are noob I'll guide you. For info on rooted phones:
http://bit.ly/I3hROF
For everything else check the sticky (the first message) in this forum labeled
Android Terms,Slang & Definitions(READ THIS BEFORE POSTING QUESTIONS!)
Phrack said:
Since you are noob I'll guide you. For info on rooted phones:
For everything else check the sticky (the first message) in this forum labeled
Android Terms,Slang & Definitions(READ THIS BEFORE POSTING QUESTIONS!)
Click to expand...
Click to collapse
meh
thanks for nothin
btw, I LoLed hard at that cat in your signature
Great!
Thanks a ton mate! Keep up the good work. Waiting for Google Play to work with this
lovetide said:
Install Microsoft ActiveSync on your Windows PC
Click to expand...
Click to collapse
That page says: "Note: Microsoft ActiveSync works only with Windows XP SP2 or earlier."
So... can this work on Windows 7?
Hi, This is ashok, I am receiving an error stating "cannot find device usb0". How can i find the device name?
Question
lovetide said:
I tested accessing internet in Android phone via USB net which connected to a Windows XP PC, pure wired, not wireless solution I Googled.
It works! However, some application does not designed to use USB net, these application only use WiFi or GPRS/EDGE/HSPA to access internet.
My environment:
Windows: XP
Phone: Huawei U8800, Android 2.3.5
Internet: Ethernet (ADSL+router infact)
For those people who don't have WiFi, can't use WiFi (care about baby's health?), don't want to use WiFi/GPRS/EDGE/HSPA (expensive?), here is the tips to let you access internet via USB net.
How to do
Your android phone must be rooted first
Install Microsoft ActiveSync on your Windows PC
Install Terminal Emulator application on your android phone from market.
Connect your phone to your Windows PC
On your phone, turn on USB tethering: Settings -> Wireless & networks -> Tethering & portable hotspot -> USB tethering
Now, look at your Windows system, there will be a new network card (Windows Mobile-based Internet Sharing Device) appears
Share your internet connection to the new network card: right click internet connection (PPPoE or Ethernet or WiFi or whatever your internet connection is) -> Property -> Advance -> Enabled internet connection sharing. (if your Windows Firewall service is not started, start it first), this will change the IP address of new network card to 192.168.0.1/255.255.255.0
Now back to your phone, open the Terminal application, type commands like the following
Code:
su
ip addr add 192.168.0.2/24 broadcast 192.168.0.255 dev usb0
route add default gw 192.168.0.1 dev usb0
setprop net.dns 192.168.1.1
setprop net.dns1 8.8.8.8
setprop net.dns2 8.8.4.4
# the DNS server should change to your favorite DNS server, 192.168.1.1 is for my environment (a router)
DONE! turn your phone WiFi off, open a browser, you can surfering now, but as I tested, some other application won't work (or work well), they don't know USB net
Compatible/Incompatible applications
I tested few applications, found some compatible and incompatible applications, I will list them here, if you found incompatible applications, please help fill these lists.
++ Compatible ++
Generally, most browser or browser-like application works with USB net.
XDA
Browser
Gmail
Google Map
News & Weather
QQ
SoSo Map
新蛋商城/Newegg Mall China
Opera Mobile Browser
-- Incompatible --
Market: can browse, but can't download application
Weather Clock: can't update weather
QQGame: can login, but can't enter room to play
Google Voice recognition applications like Voice Search
YY: can't login
Jingdong Mall/京东商城: can't login
Proxy issue
For environment which need proxy to access internet, there're very few applications support it. Currently, I only know Opera Mobile browser works in such environment, there're proxy configurations in opera:config page.
Click to expand...
Click to collapse
What about if I installed one of CM10 ROMs and USB tethering is not working
USB to LAN Ethernet Adapter for Google Android Tablet
AmirNajjar said:
What about if I installed one of CM10 ROMs and USB tethering is not working
Click to expand...
Click to collapse
My Nexus 7 (2012) hat USB host function. I'm simply using an "USB to LAN Ethernet Adapter for Google Android Tablet". No Windows needed.
Lots of troubles
• The ip of my router is "192.168.0.1" and ICS were having a trouble about that.
• After I type in terminal the "ip addr bla bla bla..." it says " Object 'addr' not found. Try 'ip help' "
• I typed "ip help" then it says " 'help' not found try 'ip help' " Seriously??
• I Google "help not found on android terminal" and I cannot find any related problem like mine
The PC I am using doesn't have any WiFi so I badly needed this kind of workaround because I need internet to simulate the app I'm gonna work for. Thanks!
My phone charge only when it connect to pc
why my pc won't recognize my android device , it just doing charging and no usb thing or image in tray or menu ( i don't know the term to use) i search whole day and still i can't find answer for this, i don't have usb utility in my device, i do have usb debugging enabled/disabled, usb computer connection (MTP, PTP and as Storage ) i already restarted my device many times.
Help me with my problem so i can do this
-------------------->>>>>>>>> [Tips]Access internet via USB net: share Windows internet connection to android phone.
sorry if i do this in maybe wrong section :crying:
BoomPork said:
why my pc won't recognize my android device , it just doing charging and no usb thing or image in tray or menu ( i don't know the term to use) i search whole day and still i can't find answer for this, i don't have usb utility in my device, i do have usb debugging enabled/disabled, usb computer connection (MTP, PTP and as Storage ) i already restarted my device many times.
Help me with my problem so i can do this
-------------------->>>>>>>>> [Tips]Access internet via USB net: share Windows internet connection to android phone.
sorry if i do this in maybe wrong section :crying:
Click to expand...
Click to collapse
Have you had try downloading the necessary drivers to be able to detect it by your computer? That's one possible problem I encountered in the past.
Thanks for this. Will try this later. :victory:

Cm9/ics ad-hoc fix

JIUI v4(MIUI v4) & JWP7(Windows Phone 7 MOD): http://forum.xda-developers.com/showthread.php?p=26890050#post26890050
cm9 does not support ad-hoc because ics doen not provide that facility. But we can create a virtual router and share the wifi from our laptop.
1.Download virtual router(you can google it. version:0.9 beta).
2.Install it in your system.Open it.
3.Now open command promt as administrator and type this
netsh wlan set hostednetwork mode=allow ssid=android key=TYPE YOUR PASSWORD
press enter.
4.Type netsh wlan start hostednetwork and press enter. Now you hava created a virtual router.
5.Open network and sharing center. it will display your lan network which is connected to internet.
6.Click on Local area connection and select properties. A new window will open.
7.Select sharing from that window. There will be something called Allow network users to connect through this computer's internet. Click on the Checkbox.
8.Select the network. Usually it will be wireless network connection 2. If not select wireless network connection.
9.Hit ok. Now you will be able to share your internet connection via wifi.
ANY BROKEN LINKS!! PLEASE REPORT.
yeah, that's great. but what if i use ubuntu and my wireless card is not supported by hostapd? haven't found a working wpa_supplicant for my ics-sed galaxy s yet, so i'll stick to gb for the time being..
I have DEFY i changed wpa_supplicant but no use same result only and wifi tether does work but no apps support the internet connection recevied through wifi tether. Some one has to change the script, its in the hands of developers. So far what i posted before works. Will try to figure our something and will let you know.
fartlec said:
yeah, that's great. but what if i use ubuntu and my wireless card is not supported by hostapd? haven't found a working wpa_supplicant for my ics-sed galaxy s yet, so i'll stick to gb for the time being..
Click to expand...
Click to collapse
I am not big fan of UBUNTU but found this. Give it a try and say if it works.
In Ubuntu 10.04, it seems extremely easy to have this hostapd work. First, of course, you need to install it. It is already in the official repositories. Just run this in the terminal:
sudo apt-get install hostapd
Then, open a text editor program, for example gedit. Copy the following into it.
interface=wlan0
driver=nl80211
ssid=
channel=1
hw_mode=g
auth_algs=1
wpa=3
wpa_passphrase=
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
Please don’t forget to fill in the name of your network after “ssid=”, as well as the password after “wpa_passphrase=”.
After all these, save the file as hostapd.conf in your home folder.
Now, in your terminal:
sudo hostapd hostapd.conf
Turn the wifi connection on in your devices and enjoy the fast network share!
janeindiran said:
cm9 does not support ad-hoc because ics doen not provide that facility. But we can create a virtual router and share the wifi from our laptop.
1.Download virtual router(you can google it. version:0.9 beta).
2.Install it in your system.Open it.
3.Now open command promt as administrator and type this
netsh wlan set hostednetwork mode=allow ssid=android key=TYPE YOUR PASSWORD
press enter.
4.Type netsh wlan start hostednetwork and press enter. Now you hava created a virtual router.
5.Open network and sharing center. it will display your lan network which is connected to internet.
6.Click on Local area connection and select properties. A new window will open.
7.Select sharing from that window. There will be something called Allow network users to connect through this computer's internet. Click on the Checkbox.
8.Select the network. Usually it will be wireless network connection 2. If not select wireless network connection.
9.Hit ok. Now you will be able to share your internet connection via wifi.
Click to expand...
Click to collapse
This works only on windows platform. Tested on Windows 7 ultimate x64.
@ janeindiran
yeah, thanks, already did it. long story short: nl80211 driver does not work, guys @ linuxwireless are working on a functional broadcom4313 driver, which is, by chance, my wireless card. Good news is that they're working on it, so there's still hope.
ps can agree on ubuntu, but i'm a dumbass and it was my first choice to move from windows!
fartlec said:
yeah, thanks, already did it. long story short: nl80211 driver does not work, guys @ linuxwireless are working on a functional broadcom4313 driver, which is, by chance, my wireless card. Good news is that they're working on it, so there's still hope.
ps can agree on ubuntu, but i'm a dumbass and it was my first choice to move from windows!
Click to expand...
Click to collapse
If you find any fix please do post it here. I will try to find a fix for it.
Its not really a fix for your phone, its another way of creating a network. It will work for Windows users.
If anyone has tried, don't forget to mention the review.
is wifi tethering ever gonna work for ics?
flanagan843 said:
is wifi tethering ever gonna work for ics?
Click to expand...
Click to collapse
Use wifi tether from market that works.
this is just an pc solution.. i can't connect to my mobile Wlan ad hoc hotspot with my ics phone
Chest3r said:
this is just an pc solution.. i can't connect to my mobile Wlan ad hoc hotspot with my ics phone
Click to expand...
Click to collapse
Yep. So far this is the only working solution.
don't know if anyone is interested yet, but i've found out that wifi ad hoc support is a bit troublesome in ics. wpa_supplicant does not make the job, as it is also kernel related. starting from 20120506 nightly, cm9 does support ad hoc wifi (at least in galaxy s). of course, custom kernels have to be based on this stock to make the job. Onestly, this is the only way i found to make it work in ics
It's not working on all WINDOWS .
Virtual Router doesn't work on XP .
Commands netsh wlan star hostednetwork etc, doesn't work too .. :/
polokk said:
It's not working on all WINDOWS .
Virtual Router doesn't work on XP .
Commands netsh wlan star hostednetwork etc, doesn't work too .. :/
Click to expand...
Click to collapse
Run the command prompt as Administrator. If you open that application and if you try to create via that application that application it won't work. Open that application minimize it and then use those commands in command prompt. It will work fine. One more thing after hosting Virtual Router, you have to do few configurations in your control panel to share wifi.
virtualwifi router
i used VitualWifi Router developed by ravieeswar
it works fine
https://www.dropbox.com/s/e4b08htwrb4v9zu/VirtualWiFiRouter_2.0.1.5.exe
how about the gingerbread version ?!
i am using JIUI GB and my phone doesnt see the AD-HOC network that i created !
ardalaan said:
how about the gingerbread version ?!
i am using JIUI GB and my phone doesnt see the AD-HOC network that i created !
Click to expand...
Click to collapse
I can conform AD-HOC works in JIUI GB
janeindiran said:
Run the command prompt as Administrator. If you open that application and if you try to create via that application that application it won't work. Open that application minimize it and then use those commands in command prompt. It will work fine. One more thing after hosting Virtual Router, you have to do few configurations in your control panel to share wifi.
Click to expand...
Click to collapse
But the software Virtual Router is stated as for Windows 7, and not XP.

The best alternative solution for all devices, all android, adhoc connections

We know android won't connect to Ad Hoc networks, I tried to flash and root often, replaced many versions of the file wpa_suppicant with no results.
Here is an easier alternative to the android - pc connections [adhoc] and share internet, without doing anything on the device, only with a PC application, for all androids and devices...
We will turn our PC into a router, well, do it this way.
This is easy with a little application that I share.
1. Download and extract the files
2. Install the application
3. Restart the system
4. Register the product with the serial (included)
5. Setting fields:
Hotspot Name: choose any name
Password: choose any password
Internet to share: Your interface with internet to share
Share Over: Your wifi interface to connect with your android
Sharing Mode: Select the "wi-fi Access Point"
6. Start Hotspot
7. Activate the wifi on your android and connect to your acces point
Enjoy.
What's the name of sware?
Hi jota!
What's the name of your suggested software? Is it connectify? Connectify can create Access Point mode HotSpot for Windows 7 and above. It's so far the best AP hotspot app for Windows though some other apps like Virtual Router, Virtual Wifi Router,etc are available.
HEXcube said:
Hi jota!
What's the name of your suggested software? Is it connectify? Connectify can create Access Point mode HotSpot for Windows 7 and above. It's so far the best AP hotspot app for Windows though some other apps like Virtual Router, Virtual Wifi Router,etc are available.
Click to expand...
Click to collapse
Yes, it is connectify with enabled wi-fi acces point.
Do you know if and how I can host an adhoc network from my phone to other devicss (so i dont have to share my router )
Greets
Sent from my Xperia X10 using xda app-developers app
afaik you can make any windows 7/8 (and maybe vista) pc into a wifi hot point with just a few console commands without any external app or program...
Code:
A detailed step-by-step to setup tethering in Windows 7 without any 3rd party software:
From admin command prompt type:
netsh wlan set hostednetwork mode=allow ssid=mywifinetwork key=mysecretkey
Enable new virtual Wi-Fi adapter (it might be disabled upon creation)
From admin command prompt type:
netsh wlan start hostednetwork
From current internet conection adapter share (ICS) to the virtual adapter
Connect from wireless client to virtual SSID. Wi-Fi client gets an auto IP and you're good to go.
After host computer restart you only need to repeat steps 3 & 5 to be up and running.
Adhoc or Access Point?
Thanks for the command prompt method NixZero. But, is the created network Adhoc or Access Point mode hotspot? If it's AP, Android can directly connect to it.
---------- Post added at 11:43 AM ---------- Previous post was at 11:14 AM ----------
@keenofhiphop
Android 2.2 or above have a built in Portable Hotspot feature to create Access Point mode Hotspot easily. Go to Settings->Wifi->Tethering and Portable Hotspot and turn on Portable Hotspot. This is a proper hotspot and acts like a real router. You can share your phone's internet connection over wifi and even play games. There's no need to create an Adhoc network when Access Point mode is readily available.
HEXcube said:
Thanks for the command prompt method NixZero. But, is the created network Adhoc or Access Point mode hotspot? If it's AP, Android can directly connect to it.
Click to expand...
Click to collapse
access point mode - I've used it to connect my tablet
the only annoying thing is that you have to activate it by hand at every boot (you can make a .bat obviously) and there are a few limits on the network sharing, for eg. it sets the dhcp for 192.168.0.255 mask with the server pc as 192.168.0.1 and you cant change it even if you set a different lan ip.
HEXcube said:
@keenofhiphop
Android 2.2 or above have a built in Portable Hotspot feature to create Access Point mode Hotspot easily. Go to Settings->Wifi->Tethering and Portable Hotspot and turn on Portable Hotspot. This is a proper hotspot and acts like a real router. You can share your phone's internet connection over wifi and even play games. There's no need to create an Adhoc network when Access Point mode is readily available.
Click to expand...
Click to collapse
Yeah I know but I dont wantbto share my 3g but my wifi. With builtin tethering it only works 3g to wlan.
Greets
Sent from my Xperia X10 using xda app-developers app
Configure as Repeater
keenofhiphop said:
Yeah I know but I dont wantbto share my 3g but my wifi. With builtin tethering it only works 3g to wlan.
Greets
Sent from my Xperia X10 using xda app-developers app
Click to expand...
Click to collapse
You can create Wifi Access Point without sharing internet. Just turn off Mobile Data and then start Hotspot. It will create a Hotspot with no internet access.
Or did you mean you want to share your home wifi over phone's wifi? Usually, you can only have one wifi connection at a time since there is only 1 wifi transciever per device. But, it may be possible to configure the device as a repeater. This can be done on Windows 7 devices using Connectify by setting up a hotspot with the same name and password as the source wifi connection. I don't know if it can be done on Android too.
---------- Post added at 03:00 PM ---------- Previous post was at 02:44 PM ----------
@NixZero
Will this IP cause any conflict? As this is dhcp there should be nothing to worry about,right?
What about Static IP? Are there any commands to assign IP?
AndroidWifi for Windows 7
The blog Seeing and Believing has given a more detailed description and steps for the command line WiFi Access Point method that NixZero shared with us. An advantage of this method is that it can share non ethernet internet connections like USB dongle,bluetooth modem,etc. Connectify and other Virtual Routers are limited to sharing ethernet. Connectify Pro can do this, but it's not free. The same blog has also linked to a Windows Application AndroidWiFi which automates execution of these scripts.
How to get list of connected clients?
Hey NixZero, you missed one point - Connectify can show you the list of clients connected to Virtual AP. But, how do we do that in the Access Point created through command scripts?

Categories

Resources