-Environment-
1.VPN connection(OpenVPN)
- Default gateway is changed into VPN server IP
- Virtual interface(tunXX) for VPN connection directly connects to a default gateway
2.Interfaces & default gateway
interfaces :
- lo inet addr:127.0.0.1
- wlan0 inet addr:150.149.131.5
- tun0 inet addr:10.8.0.14
default gateway : 10.8.0.2
In this environment, I want to know "10.8.0.14" regardless of the interface name using Android API.
I cound find only a way to get default route IP address below
Code:
mSocket = new Socket(dstAddress, peerPortNum);
mStrMyIPAddr = mSocket.getLocalAddress().getHostAddress();
But, I don not want to use Socket
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.
Hi Guys!
I'm doing a college project where I use the phone and the Bluetooth conectivity to detect the position of a user. To do this, I need to keep constant the transmission power (it seem that bluetooth module uses the RSSI parameter to change the transmission power and save battery life).
Anyway, I think I have to change some default parameter of the bluetooth to keep constant the transmission power.
It is possible? I need to modify the bluetooth drivers? O there are an easier way to do this?
Thanks!