Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ##### 1.Open the commandline and run the following commands to edit the hosts file:
  2.  
  3. ```
  4. adb root
  5. adb remount
  6. adb pull /system/etc/hosts hosts
  7. ```
  8.  
  9. ##### 2.The hosts file should now be present in the folder where you excecuted the pull command. Edit the file with a text editor and add the sites you want to access. For example i added:
  10.  
  11. ```
  12. 10.0.3.2 my-virtualhost.dev
  13. ```
  14.  
  15. **LEAVE A EMPTY LINE AT THE END OF FILE**
  16.  
  17. ##### 3.Send the hosts file back to the emulator
  18.  
  19. ```
  20. adb push hosts /system/etc/hosts
  21. ```
  22.  
  23. ##### 4.Browse to your site in the emulator browser. For example: my-virtualhost.dev You should see your homestead site now!
  24.  
  25. What to try if site is not reached from browser
  26.  
  27. 1. Check that you added an empty line after the last site in the hosts file.
  28. 1. Close and reopen the emulator browser
  29. 1. Restart the emulator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement