Hi, just released Remote Keyboard and could need some feedback.
What it does
Remote Keyboard starts a telnet server on your Droid, so you can connect from your Desktop PC and type on it without having to use a softkeyboard.
It's quite handy for app developers, especially since it allows for copy&pasting text between droid and desktop in both directions.
Remote Keyboard is licensed under the terms of the APL2. It's free of charge and doesn't contain ads
how to connect to pc? i already plug through usb but nothing happen....
remote keyboard is llistening on port 2323 of host blablabla.....test your connection here
Sancipak said:
how to connect to pc? i already plug through usb but nothing happen....
remote keyboard is llistening on port 2323 of host blablabla.....test your connection here
Click to expand...
Click to collapse
Normally, you'd connect via WIFI. USB is the way to go if you can't trust your network. You need to have the Android SDK installed, which allows you to tunnel TCP/IP connections through your USB cable:
adb forward tcp:2323 tcp:2323
Just pushed v1.1 to Google Play. Changes:
- Added a widget to select the keyboard
- Made the UI more instructive
- Added CTRL-S and CTRL-L which directly link to Search and Send action.
- New, more flexible infrastructure for interpreting telnet commands (preparation for future features).
- Made Home, End, and Delete work
- Enabled word selection using CTRL-Cursor.
Big version bumpasaurs:
V1.3:
Map Q to the Back button
No longer show a toast when a connection is made
Reintroduced the disconnect button
Bugfix: no longer show the preview boxes on keypresses
V1.4:
BUGFIX: Don't crash when hitting CTRL-R while not inside an editable
Registered a Settings activity
Connections can now be password protected
F-Keys can now be configured to act as quicklaunchers
Sharing text with Remote Keyboard sends it directly to the telnet client
Added german translation
V1.5
Show IP address in the system notification
Added UP navigation
Show a progressbar while the settings are loading
onyxbits said:
Big version bumpasaurs:
V1.3:
Map Q to the Back button
No longer show a toast when a connection is made
Reintroduced the disconnect button
Bugfix: no longer show the preview boxes on keypresses
V1.4:
BUGFIX: Don't crash when hitting CTRL-R while not inside an editable
Registered a Settings activity
Connections can now be password protected
F-Keys can now be configured to act as quicklaunchers
Sharing text with Remote Keyboard sends it directly to the telnet client
Added german translation
V1.5
Show IP address in the system notification
Added UP navigation
Show a progressbar while the settings are loading
Click to expand...
Click to collapse
had a hard time finding about telnet, and i m still not able to activate it(having connection failed cant find connection on 192.168.1.102 port 2323 and something something,when using cmd...), i will try once i get my laptop back, i m currently using my brother's laptop and i dont want to download 3rd party software here
Will definately try it later and will give reviews then ...
Is it possible to use my device with this and is this able to work with a smart TV?
XT912 RaZR SpYdEr CDMA
hit ThAnKs if I was helpful!!!
is support TV?
Higard, 1droidmod:
I'm not quite sure I understand what you are asking.
New release
Just pushed v1.6 to GPlay. This is a minor feature release, adding the ability to toggle fullscreen in landscape mode.
I want to connect via USB, but i dont get ist.
I typed on windows:
Code:
E:\Android_DEV_Kit\android-sdk-windows\platform-tools>adb forward tcp:2323 tcp:2323
now start Remote Keyboard said Wait for 0.0.0.0 Port 2323
I start Putty -> Telnet 0.0.0.0 : 2323
Network Error: Cannot assign request address
What is wrong?
Dawnrazor said:
I want to connect via USB, but i dont get ist.
I typed on windows:
Code:
E:\Android_DEV_Kit\android-sdk-windows\platform-tools>adb forward tcp:2323 tcp:2323
now start Remote Keyboard said Wait for 0.0.0.0 Port 2323
I start Putty -> Telnet 0.0.0.0 : 2323
Network Error: Cannot assign request address
What is wrong?
Click to expand...
Click to collapse
The IP address is wrong. 0.0.0.0 is nothing you can connect to. Seems like your network interface on Android is down, blocked by a firewall or otherwise inaccessible due to some privacy guard app.
NOTE: even though you tunnel through USB, you still need the TCP/IP layer. You are only forwarding your connection through another transport, not fundamentally switching from network IO to something else.
onyxbits said:
The IP address is wrong. 0.0.0.0 is nothing you can connect to. Seems like your network interface on Android is down, blocked by a firewall or otherwise inaccessible due to some privacy guard app.
NOTE: even though you tunnel through USB, you still need the TCP/IP layer. You are only forwarding your connection through another transport, not fundamentally switching from network IO to something else.
Click to expand...
Click to collapse
Oh thank you, i will check this
onyxbits, thanks for this little app.
i, too, have problems connecting.
i tried the wifi method but i'm not sure if it applies to my setup: i don't have a wifi network at home, but use my phone as a wifi hotspot instead.
what i tried here (arch linux desktop / cyanogenmod 10.1 samsung galaxy mini):
"Test your connection here":
- usb cable connected, issued
Code:
$ adb forward --remove-all
$ adb forward tcp:2323 tcp:2323
$ telnet 0.0.0.0 2323
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused
- wifi hotspot active and connection established:
Code:
$ adb forward --remove-all
$ telnet 0.0.0.0 2323
Trying 0.0.0.0...
Connected to 0.0.0.0.
Escape character is '^]'.
Connection closed by foreign host.
i am using a hosts-based adblocker on my computer.
i have a similar app on my phone but disabled it (and rebooted) until i figure this one out.
any suggestions?
Im trying to make it work through USB, I type in the cmd "adb forward tcp:2323 tcp:2323" but it does nothing, the USB is plugged in, the Remote Keyboard is on, why is it not working?
to the other guys who wonder, why it does not work:
In my case, after some time, I got it:
If you open the RemoteKeyboard App and click on the text input field and the soft keyboard comes up,
Then you forgot to select the RemoteKeyboard as Input Method.
The RemoteKeyboard App even has a shortcut button at the top right (v1.6 at least), so just click, select RemoteKeyboard,
and the telnet port 2323 should be reachable and present the interface.
@8nexus8: after you did the above, did you try connecting to the phone via telnet on port 2323? Using well.. telnet from the commandline or the PuTTy software for Windows?
also, the "interface" requires a proper telnet interface in order to work. using netcat will work, but with local echo and it will only send input after carriage return
IP 0.0.0.0 , can't connect
Hey Guys,
i also have displayed the IP 0.0.0.0 in App on Phone.
I can't connect via TelNet, i'm using ADB-Tool forward tcp:2323 tcp:2323.
The "real" IP of the Phone is : 127.0.0.1
=> So you need to connect to 127.0.0.1 on Port 2323
In fact TelNet ( i'm on Windows XP ) always try to Connect on Port 23 !
=> SOLUTION : I use PuTTy where you can setup Port "2323" and connect to 127.0.0.1:2323
Everything works quite nice.
I have written a little Batch-File, which execute the comandline "adb.exe forward tcp:2323 tcp:2323" for me, i'm lazy...
Thx to the guy who written this little APK
Thanks for your software.
I used XShell to connect a Sony L50t (4.4, rooted), it had a small problem: I need to press ^<Return> instead of just press <Return> in XShell to send a return to phone.
Besides, what will happen if someone use a scanner to try to login the phone? do it has limitation times of retry?
Thanks.
Related
1: Goto the market and download the Android VNC program
2: http://downloads.sourceforge.net/vnc-tight/tightvnc-1.3.10-setup.exe (If your using anything other than windows goto their download page, this file is for windows based pc's only)
3: Download #2, run the server and it will ask you to configure it. ALL YOU HAVE TO DO IS SET A PASSWORD THAT IS 8 CHARACTERS OR LESS AND CONFIRM IT. Click ok to finish loading the tightvnc. You should see a small little icon in the lower right corner near the time that looks like a little V
4: http://www.whatismyip.com/ Write down your ip address (you will need this to configure the VNC program to tell it where your computer is on the internet
5: *******THIS IS A LITTLE ADVANCED FOR SOME PEOPLE DONT ATTEMPT IF YOUR NOT COMFORTABLE, GOOGLE SHOULD HAVE A WALKTHROUGH FOR YOUR MODEL OF ROUTER*******
6: This is very important part or it WILL NOT work. To make sure the proper ports are open to allow the vnc program to work
7: click start menu > run (windows vista uses start/search) type cmd, will open a black box up.
8. Type ipconfig into this box. Look for your connection that your using and the gateway ipaddress of that connection (should be along the lines of 192.168.1.1 or 192.168.0.1 or 192.168.1.254 for most mass produced routers, also write down your ip address (IF YOUR USING WINDOWS VISTA YOU ARE LOOKING FOR IP ADDRESSV4 NOT V6)
9: After getting this information, type hostmask and hit enter, write down your computer name
10: Once inside of your router, there will be a dmz option to set (usually within a NAT/QOS menu)
*******This will open all ports on the computer to the internet, if you dont feel comfortable doing this, follow these directions*********
11: goto the port forwarding section (should be in the same area as DMZ)
12: usually theres a nickname you type in to label the port forwarding your doing (label it androidvnc)
13: the FROM port number will be 5800 and TO will be 5900 and make sure to check the enable box (if there is one)
14: once in the DMZ menu input your ipaddressV4 into it and enable dmz mode if a checkmark is needed to enable DMZ for that ip address
15: load AndroidVNC, configure the Nickname with the anything you you wrote down (not sure if this is neccessary, which after research is not needed its just a nickname of the connection your making) type the password that you set within the Tightvnc program, Address is the ip address that you got from www.whatismyip.com, leave the port number the same
16: Connect and once it says "downloading first frame" you are connected and give it a second to work and than you will see the screen in front of you of your pc!
17: Configure AndroidVNC for the color depth that runs the fastest for you, also input should be set to the last one on the list (touch pan trackball mouse or something) which will allow you to pan the screen by touching it and the trackball is now your mouse.
P.S. I used scaling to goto 1:1, not fit to screen as it looked horrible in that mode.
P.S.S. That should do it, now you have a vnc connection made and downloading files while your at work (or whatever have you!) Any questions please feel free to PM me and i will help out to the best i can. If i missed a step please let me know and i will add it, but thats all it should take (had mine working in 5-10 minutes)
P.S.S.S! Everytime you disconnect wirelessly (if you use wireless) or shut your computer down, your IP address will more than likely change, upon reboot you will have to redue this process by getting the newly obtained IP address and changing the port forwarding ip address to reflect your new ip. If you know how to set static IP's.... you probably dont need this tutorial
mine is stuck at handshake.
i have tried everything
i have a 2wire router and i put it into dmz plus mode which allows all incoming connections
inpherno3 said:
1
10: once in the DMZ menu input your ipaddressV4 into it and enable dmz mode if a checkmark is needed to enable DMZ for that ip address
Click to expand...
Click to collapse
Bad idea. You just opened every port on the PC to the world, removing an important layer of protection. Playing around with DMZ is something to be done only if you know the potential consequences.
VNC listens on port 5900/tcp. Only forward that one. Also you'll need to add an exception on any firewall you may have on the PC.
Yes i understood that when writing it, thing is, to walk someone through specifying the port was a little much. People want it working, thats the easiest way.
@kp123: Dont forget to check for a software firewall, if your running vista make sure you allow it through when you run it for the first time.
@TonyHoyle: Most people have a software firewall on their pc's, if not than yes, someone looking to do something can. But thats a slim chance. Oh and tightvnc also uses port 5800. Yes still a port range of 5800-5900 would work.
bump for love
TonyHoyle said:
Bad idea. You just opened every port on the PC to the world, removing an important layer of protection. Playing around with DMZ is something to be done only if you know the potential consequences.
VNC listens on port 5900/tcp. Only forward that one. Also you'll need to add an exception on any firewall you may have on the PC.
Click to expand...
Click to collapse
good point... haha just forwarded port 5900 instead of all ports
I just installed AndroidVNC on my phone... VNC-Tight on my notebook with Windows7.
filled in the same username as notebook
changed password in VNCtight
filled in at my Desire HD
the 192.. ipv4 ip
and connection in 0.5sec
a more secure option
For more security use SSH ( quick version ):
- Forward port 22 instead of 5900 to your PC. The PC must have a SSH server runnign. I have linux so is basically ready, for windows you have to get a ssh server.
- From android use connectbot (from the market) to log into your PC and do a port forwad of 5900 to localhost:5900.
- use android VNC viewer to connect to localhost:5900.
VNC connection through a secure line.
I'm grave digging here but i hit this problem just now I installed CrossLoop on my Laptop Win 7 Ultimate (32-Bit) i set a password, i installed crossloop on my ascend M860 i set the same password i entered my IPv4 into crossloop droid i hit connect it stays on handshake i tried it the other way around still sticks at handshake i have also tried conecting through partner connect and still sticks at handshake. I have forwarded port 4900 TCP on a verizon modem! STILL stuck on handshake any pointers?
I thought I'd be major gravedigging but apparently not.
I used to use this all the time, but it was confusing me today as to why it wasn't working..
Turns out I forgot to portforward!
*facepalm*
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
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:
Synopsis:
Need to bypass corporate web proxy for unfiltered Internet access. Google Chrome is the preferred and tested browser, but Firefox should work as well. Corporate environment utilizes an automated global proxy setting, which must be bypassed using run-time arguments. Since I have a Squid proxy running at home on my cable connection, all I need to do is establish a port-forwarding tunnel from my phone to my house, then another from my laptop to my phone. This will allow me to browse the web and proxy any traffic through my phone to my proxy server at home, around our corporate proxy and firewall. The phone utilizes a DSL connection typically used for testing and other non-business traffic and is isolated from the corporate LAN.
Requirements:
A Web Proxy (Squid instance or other third-party available)
Atrix 2 Rooted (others not tested)
SSHDroid from Google Play
BusyBox (with ssh binary)
Google Chrome or Firefox
Putty SSH Client for Windows or other SSH client software AND a familiarization with SSH tunneling.
Procedure
On the Atrix 2, be sure 'Motorola Phone Portal' mode is configured for the USB connection. This will tell the phone to assign an IP address to the USB interface of the phone. In my case, it is 192.168.16.2. Once that is done, connect your phone to your PC via the USB cable. This may auto-launch IE on your desktop to your phone to the web portal on port 8080 and is not necessary.
On the Atrix 2, launch SSHDroid to enable inbound SSH connections. No special settings were configured in that app for any of this to work.
On your PC, manipulate your Chrome shortcut to use different proxy settings than the default. By default Chrome utilizes the Internet Settings on the PC, so this is necessary if you already have a proxy defined at the OS level. To do this, you must create a new shortcut to Chrome, then right-click on that shortcut, go to properties, and change the 'Target' field to include this information:
--proxy-server="localhost:3128" (don't forget the quotes)
Be sure to use this shortcut to launch Chrome or you will continue to use the OS-level Internet Settings.
Now, launch the Putty SSH client and create a new SSH session to your Android device. Enter the appropriate connection information, and under the Connection/SSH/tunnel section, define the port forward information for the web proxy. In my case I set it to port 3128 forwarding to 192.168.16.2:3128. Save this session. This will tell your PC when the SSH session is established to set up local TCP port 3128 to listen for requests, then forward them to the Android phone across the USB connection on the same port.
Try to connect to your SSH server on your phone. By default, the username is 'root' and password is 'admin' for SSHdroid. You should now be successfully logged into your phone.
In the Putty SSH session on your phone, you will now have to launch a command-line SSH session where you will establish the real tunnel to the real proxy server. Enter 'ssh <REMOTE SSH USERNAME>@<REMOTE SSH HOST> -L <IP OR HOSTNAME OF PROXY>:<PROXYPORT>:<USB NETWORK IP ADDRESS>:<LOCAL PROXY PORT>' (without quotes) to establish the SSH tunnel. Here is what my connection (sanitized) looks like. You can also run 'ssh -?' to get an idea of command-line options for the ssh binary.
ssh [email protected] -L 192.168.1.1:3128:192.168.16.2:3128
This will set your phone to listen on TCP port 3128 on the 192.168.16.2 interface and forward any requests to 192.168.1.1 on the same port. It is important to specify the USB interface as by default it will only set up connections on the localhost (127.0.0.1) interface, which won't accept connections from other remote hosts.
Finally, launch Chrome using the shortcut you created and you should now be sending all web traffic out the USB interface and through your phone to your remote proxy server. You can verify this by connecting to a resource such as your home Internet router on the LAN interface to verify. If you are running Squid at home, you should also be able to view your /var/log/squid/access.log and see your requests.
I have not tested remote web proxies or other methods, but in principle it should work.
Feedback and ideas for improvement are welcome!
I just USB tether and use Tunnelier (because putty does not have auto reconnect) and Proxifier (so I don't have to set the proxy settings in each application I want proxied)
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 ..