<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jamael Tanveer Nayon</title>
    <description>The latest articles on Forem by Jamael Tanveer Nayon (@jtanveer).</description>
    <link>https://forem.com/jtanveer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F295473%2F7fdd0283-ed19-4b06-9cc2-7c8fed55abd2.jpeg</url>
      <title>Forem: Jamael Tanveer Nayon</title>
      <link>https://forem.com/jtanveer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jtanveer"/>
    <language>en</language>
    <item>
      <title>Configure Android emulator to access web app hosted on local machine</title>
      <dc:creator>Jamael Tanveer Nayon</dc:creator>
      <pubDate>Tue, 03 Mar 2020 11:28:28 +0000</pubDate>
      <link>https://forem.com/jtanveer/configure-android-emulator-to-access-web-app-hosted-on-local-machine-57aj</link>
      <guid>https://forem.com/jtanveer/configure-android-emulator-to-access-web-app-hosted-on-local-machine-57aj</guid>
      <description>&lt;p&gt;If you want to access a web application hosted on your local machine hosted with xampp or mamp configured with custom local domain using virtualhost from an Android emulator, do the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create AVD with Google APIs image (not Google Play image)&lt;/li&gt;
&lt;li&gt;Execute the following commands:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;adb root
adb remount
adb pull /system/etc/hosts .
nano hosts
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add your required entries like the following:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1       localhost
::1             ip6-localhost
10.0.2.2        your.custom.domain
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;After that Execute the following commands
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;adb push hosts /system/etc/hosts
adb reboot
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>android</category>
      <category>virtalhost</category>
      <category>linux</category>
      <category>xampp</category>
    </item>
  </channel>
</rss>
