ionic serve with wifi hotspot to test on mobile











up vote
0
down vote

favorite












I'm trying to test our app in the mobile browser.




  • I started a wifi hotspot

  • Ran ionic serve on our project root

  • Connected to wifi on mobile device

  • On mobile browser went to http://localhost:8100


but I get a page not found. Shouldn't the ionic app load on browse if I connect to the wifi hotspot of the pc running the app server?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm trying to test our app in the mobile browser.




    • I started a wifi hotspot

    • Ran ionic serve on our project root

    • Connected to wifi on mobile device

    • On mobile browser went to http://localhost:8100


    but I get a page not found. Shouldn't the ionic app load on browse if I connect to the wifi hotspot of the pc running the app server?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to test our app in the mobile browser.




      • I started a wifi hotspot

      • Ran ionic serve on our project root

      • Connected to wifi on mobile device

      • On mobile browser went to http://localhost:8100


      but I get a page not found. Shouldn't the ionic app load on browse if I connect to the wifi hotspot of the pc running the app server?










      share|improve this question













      I'm trying to test our app in the mobile browser.




      • I started a wifi hotspot

      • Ran ionic serve on our project root

      • Connected to wifi on mobile device

      • On mobile browser went to http://localhost:8100


      but I get a page not found. Shouldn't the ionic app load on browse if I connect to the wifi hotspot of the pc running the app server?







      ionic-framework ionic2 ionic3 ionic-view






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 8 at 10:05









      ir2pid

      88611334




      88611334
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          The best way to do it:




          1. Make Personal Hotspot from your mobile Device to your Computer

          2. run ionic serve

          3. Read the the output this command throws. There you can see an External IP-Adress

          4. Open the Browser on your smartphone and use the Exernal IP-Adress + 8100 (Port)


          For example: http://192.168.32.12:8100






          share|improve this answer








          New contributor




          Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

























            up vote
            1
            down vote













            localhost is your local address. If you want to access to the ionic app served by your PC from your mobile device browser, you should use the ip address of your PC instead of localhost, since localhost is the address of your mobile device.



            So just run an ifconfig (unix) or ipconfig (windows) on your terminal and access to the app with this address from your mobile device : http://IP_OF_YOUR_PC:8100



            This may not work depending on your firewall rules.






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205439%2fionic-serve-with-wifi-hotspot-to-test-on-mobile%23new-answer', 'question_page');
              }
              );

              Post as a guest
































              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              The best way to do it:




              1. Make Personal Hotspot from your mobile Device to your Computer

              2. run ionic serve

              3. Read the the output this command throws. There you can see an External IP-Adress

              4. Open the Browser on your smartphone and use the Exernal IP-Adress + 8100 (Port)


              For example: http://192.168.32.12:8100






              share|improve this answer








              New contributor




              Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                up vote
                1
                down vote



                accepted










                The best way to do it:




                1. Make Personal Hotspot from your mobile Device to your Computer

                2. run ionic serve

                3. Read the the output this command throws. There you can see an External IP-Adress

                4. Open the Browser on your smartphone and use the Exernal IP-Adress + 8100 (Port)


                For example: http://192.168.32.12:8100






                share|improve this answer








                New contributor




                Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  The best way to do it:




                  1. Make Personal Hotspot from your mobile Device to your Computer

                  2. run ionic serve

                  3. Read the the output this command throws. There you can see an External IP-Adress

                  4. Open the Browser on your smartphone and use the Exernal IP-Adress + 8100 (Port)


                  For example: http://192.168.32.12:8100






                  share|improve this answer








                  New contributor




                  Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  The best way to do it:




                  1. Make Personal Hotspot from your mobile Device to your Computer

                  2. run ionic serve

                  3. Read the the output this command throws. There you can see an External IP-Adress

                  4. Open the Browser on your smartphone and use the Exernal IP-Adress + 8100 (Port)


                  For example: http://192.168.32.12:8100







                  share|improve this answer








                  New contributor




                  Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Nov 8 at 12:32









                  Jonathan

                  261




                  261




                  New contributor




                  Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.
























                      up vote
                      1
                      down vote













                      localhost is your local address. If you want to access to the ionic app served by your PC from your mobile device browser, you should use the ip address of your PC instead of localhost, since localhost is the address of your mobile device.



                      So just run an ifconfig (unix) or ipconfig (windows) on your terminal and access to the app with this address from your mobile device : http://IP_OF_YOUR_PC:8100



                      This may not work depending on your firewall rules.






                      share|improve this answer

























                        up vote
                        1
                        down vote













                        localhost is your local address. If you want to access to the ionic app served by your PC from your mobile device browser, you should use the ip address of your PC instead of localhost, since localhost is the address of your mobile device.



                        So just run an ifconfig (unix) or ipconfig (windows) on your terminal and access to the app with this address from your mobile device : http://IP_OF_YOUR_PC:8100



                        This may not work depending on your firewall rules.






                        share|improve this answer























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          localhost is your local address. If you want to access to the ionic app served by your PC from your mobile device browser, you should use the ip address of your PC instead of localhost, since localhost is the address of your mobile device.



                          So just run an ifconfig (unix) or ipconfig (windows) on your terminal and access to the app with this address from your mobile device : http://IP_OF_YOUR_PC:8100



                          This may not work depending on your firewall rules.






                          share|improve this answer












                          localhost is your local address. If you want to access to the ionic app served by your PC from your mobile device browser, you should use the ip address of your PC instead of localhost, since localhost is the address of your mobile device.



                          So just run an ifconfig (unix) or ipconfig (windows) on your terminal and access to the app with this address from your mobile device : http://IP_OF_YOUR_PC:8100



                          This may not work depending on your firewall rules.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 8 at 10:32









                          saperlipopette

                          526316




                          526316






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205439%2fionic-serve-with-wifi-hotspot-to-test-on-mobile%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest




















































































                              Popular posts from this blog

                              Schultheiß

                              Liste der Kulturdenkmale in Wilsdruff

                              Android Play Services Check