Tuesday, September 25, 2012

Access home Network from Android device

Access Home Network from Android device - far from home.

(SSH Tunnel from any SSH server (with Socks Proxy) adding proxy to system wide for Android device)

Same user experience as WiFi access at home.


Do You want to quickly fetch a file forgotten from your NAS while you are on holiday ?

Forgot to start a torrent download on your home torrent server and want to start far from home just to finish download while you arrives?

Do You want to tether your mobile is reaching internet from your home router, while you are not at home?

So want to use HTTP, FTP, SMB (LAN)  (drive share), SSH, (probably VNC, and RDP too)-  to your home network devices?



Do you think, Oh Dear. it is big chalange!
You heard something about Virtual Private Network (VPN), but it is sound too complicated.

Technically speaking about SSH Tunel with Socks Proxy -The solution described here is- a semi VPN because from your Android Device you reach your home network, but not versa. (but who needs versa?)

You only need a
  • Rooted Android device (phone or tablet) and a 
  • Router with DNS name  and a running SSH server.Howto SSH )
  • Data connection on your device (you know why :)

(Oh Lord it is only Geeks. - Are you sure?. :) You can do it.

All the thing is, to download and configure two free apk (Both are GPL-d) and connect to your router.
                 vx.connectbot       proxydroid         


Steps:

  1. Download and install above two apss. 
  2. Start VX.Connectboot  - SSH to your home router via its Public (dynamic) DNS name (like dyndns)
    Example host: myhome.dyndns.org
  3. Add Port forward -Socks Proxy - port number for example 9999 -
    This is the Tunnel will be used by Proxy in next step.
  4. Start Proxydroid. set Host: localhost and Port:9999, Proxy type:  Socks Proxy5 and enable proxy switch.
    Proxy will spread home IP addresses on SYSTEM WIDE for all app!
  5. Done. :) All your home local IP adresses are available for your android applications on all protocol. (ftp,web,mail,rdp,vnc)
Usage examples:
  1. WEB based administration for router or NAS :
    Start Dolphine browser, or Chrome, or ICS browser and give URL: 192.168.1.1 (example router URL ) or 192.168.178.10 My NAS.
  2. FTP up or download files from home servers:
    Start ES File explorer - FTP server  New server: 192.168.178.10 
  3. Copy files From/To Shared drive (SMB, Network drive)
    Start ES File explorer LAN New server: 192.168.178.10 
  4. Start an Torrent file.
    Start TransDroid add your home torrent server address  New server: 192.168.178.10  and add new Torrent. 
  5. SSH to home PC and start/stop any app.
  6. Upload all your new pictures from /sdcard/DCIM to home NAS.
    Start Botsync set up source directory and target at your NAS. and start SYNC.

Is it usefull? Please comment.