Saturday, January 7, 2017

Connecting your android phone on your localhost


I have followed below steps to get it done


  1. Disconnect network cables on laptop or  turn off wifi.
  2. Turn off wifi on android device
  3. Connect android phone to laptop via USB cable 
  4. Turn on "USB Tethering" in the android settings menu -> Tethering and portable hotspot
  5. Get the IP of your computer. (open command prompt and type "ipconfig" then look for the IP )
  6. Open a browser on the laptop using the IP address found instead of localhost to test. i.e.                     http://192.168.x.x/abc/services/v1/
  7. Now, type the same URL in android browser 


It might be very helpful when you wants to test some webservice on phone. 

Sunday, January 1, 2017

TortoiseGit-git did not exit cleanly (exit code 1)


Solution to the error :   TortoiseGit-git did not exit cleanly (exit code 1)


Right click -> TortoiseGit -> Settings -> Network
SSH client was pointing to C:\Program Files(x86)\TortoiseGit\bin\TortoisePlink.exe
Changed path to C:\Program Files (x86)\Git\bin\ssh.exe