<?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>DEV Community: raikiran07</title>
    <description>The latest articles on DEV Community by raikiran07 (@raikiran07).</description>
    <link>https://dev.to/raikiran07</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%2F693706%2Fa51ab667-5a88-49c5-a39a-9c154802e40c.png</url>
      <title>DEV Community: raikiran07</title>
      <link>https://dev.to/raikiran07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raikiran07"/>
    <language>en</language>
    <item>
      <title>How to access your site in mobile phone during development</title>
      <dc:creator>raikiran07</dc:creator>
      <pubDate>Wed, 01 Nov 2023 21:53:16 +0000</pubDate>
      <link>https://dev.to/raikiran07/how-to-access-your-site-in-mobile-phone-during-development-2m92</link>
      <guid>https://dev.to/raikiran07/how-to-access-your-site-in-mobile-phone-during-development-2m92</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KeU_E5nj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2r3v1cmc1hfdn6lcxsos.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KeU_E5nj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2r3v1cmc1hfdn6lcxsos.jpg" alt="how to access localhost in mobile devices during development" width="686" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Common steps to follow
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;&lt;ol&gt;

&lt;li&gt;Connect your mobile device and laptop to the same wifi network&lt;/li&gt;

&lt;li&gt;Go to windows defender firewall and select advance setting, create a new inbound rules&lt;/li&gt;

&lt;li&gt;Click on port, select TCP protocol and specify the port number on which your localhost website is running.&lt;/li&gt;

&lt;li&gt;click allow the connection and checked private and public box&lt;/li&gt;

&lt;li&gt;set any name for the shared server. eg:- local testing and click OK&lt;/li&gt;

&lt;li&gt;Go to firewall and network protection and turn off the public microsoft defender firewall.&lt;/li&gt;

&lt;li&gt;Go to your mobile device browser and type the shared ip address followed by the port number and sometimes the name of the html file. eg:- http:192.168.1.97:3000/index.html&lt;/li&gt;

&lt;li&gt;If you serving plain html file than you are good to go.&lt;/li&gt;

&lt;/ol&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀Serving react app in mobile device for testing
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;&lt;ul&gt;

&lt;li&gt;you should follow the common steps mentioned above as it is&lt;/li&gt;

&lt;li&gt;open the terminal and enter cmd - npm start --host shared         ip-address
eg:- if shared wifi ip address is 192.168.1.97 than 
cmd - npm start --host 192.168.1.97&lt;/li&gt;

&lt;/ul&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀Serving vite+react app in mobile device for testing
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;&lt;ul&gt; 
&lt;li&gt;Follow the common steps mentioned above&lt;/li&gt;

&lt;li&gt;open the package.json file and change the dev script from "vite" to "vite --host"&lt;/li&gt;

&lt;li&gt;enter cmd: npm run dev in the terminal and hit enter, you will find the network where the app is served&lt;/li&gt;

&lt;/ul&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>testing</category>
      <category>design</category>
      <category>localhost</category>
    </item>
  </channel>
</rss>
