Calling a web server on my computer from a smartphone











up vote
-1
down vote

favorite












I have this strange problem that i haven't been able to figure out. Can anyone please suggest what to try:



I have a piece of software to control my camera from my computer. It's called "Control my Nikon". It has a built-in web server. The purpose is to be able to connect from a smartphone to use it as a remote control. You choose what port it should listen to and enable it. You get a simple interface with buttons. Exposing a photo, for example, triggers the URL 127.0.0.1:8090/?c=3. Very basic stuff.



On the computer it works perfectly, but from my phone, i just get a timeout. I figured i needed to open the port (8090) in my firewall and spent some time setting that up, but it still won't work. I am using my computer's IP address on the network: 192.168.1.214:8090, which should reach the same place as 127.0.0.1:8090 from the computer.



I then set up a Spring boot application to listen to the 8090 port and i was able to reach that from the phone just fine. This suggests that the firewall is not the issue. I can trigger the control my Nikon URL from within the Spring boot application too, by making a call to http://127.0.0.1:8090/?c=3. I can also reach pages served by Apache (192.168.1.214/testpage.html) on the computer from the phone without any problems.



What am i missing here?










share|improve this question


























    up vote
    -1
    down vote

    favorite












    I have this strange problem that i haven't been able to figure out. Can anyone please suggest what to try:



    I have a piece of software to control my camera from my computer. It's called "Control my Nikon". It has a built-in web server. The purpose is to be able to connect from a smartphone to use it as a remote control. You choose what port it should listen to and enable it. You get a simple interface with buttons. Exposing a photo, for example, triggers the URL 127.0.0.1:8090/?c=3. Very basic stuff.



    On the computer it works perfectly, but from my phone, i just get a timeout. I figured i needed to open the port (8090) in my firewall and spent some time setting that up, but it still won't work. I am using my computer's IP address on the network: 192.168.1.214:8090, which should reach the same place as 127.0.0.1:8090 from the computer.



    I then set up a Spring boot application to listen to the 8090 port and i was able to reach that from the phone just fine. This suggests that the firewall is not the issue. I can trigger the control my Nikon URL from within the Spring boot application too, by making a call to http://127.0.0.1:8090/?c=3. I can also reach pages served by Apache (192.168.1.214/testpage.html) on the computer from the phone without any problems.



    What am i missing here?










    share|improve this question
























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      I have this strange problem that i haven't been able to figure out. Can anyone please suggest what to try:



      I have a piece of software to control my camera from my computer. It's called "Control my Nikon". It has a built-in web server. The purpose is to be able to connect from a smartphone to use it as a remote control. You choose what port it should listen to and enable it. You get a simple interface with buttons. Exposing a photo, for example, triggers the URL 127.0.0.1:8090/?c=3. Very basic stuff.



      On the computer it works perfectly, but from my phone, i just get a timeout. I figured i needed to open the port (8090) in my firewall and spent some time setting that up, but it still won't work. I am using my computer's IP address on the network: 192.168.1.214:8090, which should reach the same place as 127.0.0.1:8090 from the computer.



      I then set up a Spring boot application to listen to the 8090 port and i was able to reach that from the phone just fine. This suggests that the firewall is not the issue. I can trigger the control my Nikon URL from within the Spring boot application too, by making a call to http://127.0.0.1:8090/?c=3. I can also reach pages served by Apache (192.168.1.214/testpage.html) on the computer from the phone without any problems.



      What am i missing here?










      share|improve this question













      I have this strange problem that i haven't been able to figure out. Can anyone please suggest what to try:



      I have a piece of software to control my camera from my computer. It's called "Control my Nikon". It has a built-in web server. The purpose is to be able to connect from a smartphone to use it as a remote control. You choose what port it should listen to and enable it. You get a simple interface with buttons. Exposing a photo, for example, triggers the URL 127.0.0.1:8090/?c=3. Very basic stuff.



      On the computer it works perfectly, but from my phone, i just get a timeout. I figured i needed to open the port (8090) in my firewall and spent some time setting that up, but it still won't work. I am using my computer's IP address on the network: 192.168.1.214:8090, which should reach the same place as 127.0.0.1:8090 from the computer.



      I then set up a Spring boot application to listen to the 8090 port and i was able to reach that from the phone just fine. This suggests that the firewall is not the issue. I can trigger the control my Nikon URL from within the Spring boot application too, by making a call to http://127.0.0.1:8090/?c=3. I can also reach pages served by Apache (192.168.1.214/testpage.html) on the computer from the phone without any problems.



      What am i missing here?







      apache http






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 12:25









      Mats Andersson

      112313




      112313
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The Nikon software is probably binding itself to the 127.0.0.1 network interface and not every network interface it finds.



          The software doesn't appear to be designed for network control but just runs a web server so it can present a UI in HTML.



          You would need to change the Nikon software so it listens on other ports (or configure port forwarding or a reverse proxy).






          share|improve this answer





















          • I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
            – Mats Andersson
            Nov 11 at 19:10






          • 2




            Ports and network interfaces are different.
            – Quentin
            Nov 11 at 19:15











          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%2f53248737%2fcalling-a-web-server-on-my-computer-from-a-smartphone%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          The Nikon software is probably binding itself to the 127.0.0.1 network interface and not every network interface it finds.



          The software doesn't appear to be designed for network control but just runs a web server so it can present a UI in HTML.



          You would need to change the Nikon software so it listens on other ports (or configure port forwarding or a reverse proxy).






          share|improve this answer





















          • I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
            – Mats Andersson
            Nov 11 at 19:10






          • 2




            Ports and network interfaces are different.
            – Quentin
            Nov 11 at 19:15















          up vote
          0
          down vote













          The Nikon software is probably binding itself to the 127.0.0.1 network interface and not every network interface it finds.



          The software doesn't appear to be designed for network control but just runs a web server so it can present a UI in HTML.



          You would need to change the Nikon software so it listens on other ports (or configure port forwarding or a reverse proxy).






          share|improve this answer





















          • I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
            – Mats Andersson
            Nov 11 at 19:10






          • 2




            Ports and network interfaces are different.
            – Quentin
            Nov 11 at 19:15













          up vote
          0
          down vote










          up vote
          0
          down vote









          The Nikon software is probably binding itself to the 127.0.0.1 network interface and not every network interface it finds.



          The software doesn't appear to be designed for network control but just runs a web server so it can present a UI in HTML.



          You would need to change the Nikon software so it listens on other ports (or configure port forwarding or a reverse proxy).






          share|improve this answer












          The Nikon software is probably binding itself to the 127.0.0.1 network interface and not every network interface it finds.



          The software doesn't appear to be designed for network control but just runs a web server so it can present a UI in HTML.



          You would need to change the Nikon software so it listens on other ports (or configure port forwarding or a reverse proxy).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 11 at 12:29









          Quentin

          635k718571026




          635k718571026












          • I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
            – Mats Andersson
            Nov 11 at 19:10






          • 2




            Ports and network interfaces are different.
            – Quentin
            Nov 11 at 19:15


















          • I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
            – Mats Andersson
            Nov 11 at 19:10






          • 2




            Ports and network interfaces are different.
            – Quentin
            Nov 11 at 19:15
















          I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
          – Mats Andersson
          Nov 11 at 19:10




          I can choose what port i want it to listen to. I've tried different ones but the results are consistent.
          – Mats Andersson
          Nov 11 at 19:10




          2




          2




          Ports and network interfaces are different.
          – Quentin
          Nov 11 at 19:15




          Ports and network interfaces are different.
          – Quentin
          Nov 11 at 19:15


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248737%2fcalling-a-web-server-on-my-computer-from-a-smartphone%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine