Why API's are not working in ipv6 protocol?












3















I am using the ipv6 protocol on my mobile network. API's are not working under ipv6 protocol it is working only on ipv4 protocol. why this occurs?



Is there any solution to work API in ipv6 protocol?



Can anyone help me to resolve this issue?










share|improve this question





























    3















    I am using the ipv6 protocol on my mobile network. API's are not working under ipv6 protocol it is working only on ipv4 protocol. why this occurs?



    Is there any solution to work API in ipv6 protocol?



    Can anyone help me to resolve this issue?










    share|improve this question



























      3












      3








      3


      2






      I am using the ipv6 protocol on my mobile network. API's are not working under ipv6 protocol it is working only on ipv4 protocol. why this occurs?



      Is there any solution to work API in ipv6 protocol?



      Can anyone help me to resolve this issue?










      share|improve this question
















      I am using the ipv6 protocol on my mobile network. API's are not working under ipv6 protocol it is working only on ipv4 protocol. why this occurs?



      Is there any solution to work API in ipv6 protocol?



      Can anyone help me to resolve this issue?







      android ios






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 3 at 7:05







      M.Neelima

















      asked Jan 3 at 6:56









      M.NeelimaM.Neelima

      958




      958
























          2 Answers
          2






          active

          oldest

          votes


















          1














          Haven't tried it myself, but after digging around a bit, can you try the following workaround provided in the Known Issues Section -




          Workaround 2: in Android Studio's vmoptions file, change the line
          -Djava.net.preferIPv6Addresses=true to -Djava.net.preferIPv6Addresses=true




          So this issue occurs when the Gradle daemon is trying to use IPv4 instead of IPv6. Also to understand the Networking using ipv6 you should check out this Networking Guide.






          share|improve this answer
























          • I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

            – M.Neelima
            Jan 3 at 7:33













          • You can check out this Android Doc VM Options

            – hsm59
            Jan 3 at 7:40



















          1














          Not every server provide ipv6 protocol by default.



          And some servers do not support it too. you need to contact your server-provider to get information about whether they are providing ipv6 or not.



          Then you need to enable ipv6.



          In our case Godadday was not providing ipv6. (I am not sure with today's condition) There are many others which are providing it.



          After enable, you will get ipv6 along with ipv4 like below:



          enter image description here



          Surprisingly application was working over ipv6 after implementing it in Android as well as iOS too.






          share|improve this answer


























          • API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

            – M.Neelima
            Jan 3 at 11:03











          • it varies for different servers. either you find respective documentation or contact to technical-support.

            – Rumit Patel
            Jan 3 at 12:30











          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',
          autoActivateHeartbeat: false,
          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%2f54017640%2fwhy-apis-are-not-working-in-ipv6-protocol%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Haven't tried it myself, but after digging around a bit, can you try the following workaround provided in the Known Issues Section -




          Workaround 2: in Android Studio's vmoptions file, change the line
          -Djava.net.preferIPv6Addresses=true to -Djava.net.preferIPv6Addresses=true




          So this issue occurs when the Gradle daemon is trying to use IPv4 instead of IPv6. Also to understand the Networking using ipv6 you should check out this Networking Guide.






          share|improve this answer
























          • I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

            – M.Neelima
            Jan 3 at 7:33













          • You can check out this Android Doc VM Options

            – hsm59
            Jan 3 at 7:40
















          1














          Haven't tried it myself, but after digging around a bit, can you try the following workaround provided in the Known Issues Section -




          Workaround 2: in Android Studio's vmoptions file, change the line
          -Djava.net.preferIPv6Addresses=true to -Djava.net.preferIPv6Addresses=true




          So this issue occurs when the Gradle daemon is trying to use IPv4 instead of IPv6. Also to understand the Networking using ipv6 you should check out this Networking Guide.






          share|improve this answer
























          • I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

            – M.Neelima
            Jan 3 at 7:33













          • You can check out this Android Doc VM Options

            – hsm59
            Jan 3 at 7:40














          1












          1








          1







          Haven't tried it myself, but after digging around a bit, can you try the following workaround provided in the Known Issues Section -




          Workaround 2: in Android Studio's vmoptions file, change the line
          -Djava.net.preferIPv6Addresses=true to -Djava.net.preferIPv6Addresses=true




          So this issue occurs when the Gradle daemon is trying to use IPv4 instead of IPv6. Also to understand the Networking using ipv6 you should check out this Networking Guide.






          share|improve this answer













          Haven't tried it myself, but after digging around a bit, can you try the following workaround provided in the Known Issues Section -




          Workaround 2: in Android Studio's vmoptions file, change the line
          -Djava.net.preferIPv6Addresses=true to -Djava.net.preferIPv6Addresses=true




          So this issue occurs when the Gradle daemon is trying to use IPv4 instead of IPv6. Also to understand the Networking using ipv6 you should check out this Networking Guide.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 at 7:10









          hsm59hsm59

          1,0721317




          1,0721317













          • I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

            – M.Neelima
            Jan 3 at 7:33













          • You can check out this Android Doc VM Options

            – hsm59
            Jan 3 at 7:40



















          • I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

            – M.Neelima
            Jan 3 at 7:33













          • You can check out this Android Doc VM Options

            – hsm59
            Jan 3 at 7:40

















          I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

          – M.Neelima
          Jan 3 at 7:33







          I tried it but not worked can you please provide me the "vmoptions" file, I will check it once.

          – M.Neelima
          Jan 3 at 7:33















          You can check out this Android Doc VM Options

          – hsm59
          Jan 3 at 7:40





          You can check out this Android Doc VM Options

          – hsm59
          Jan 3 at 7:40













          1














          Not every server provide ipv6 protocol by default.



          And some servers do not support it too. you need to contact your server-provider to get information about whether they are providing ipv6 or not.



          Then you need to enable ipv6.



          In our case Godadday was not providing ipv6. (I am not sure with today's condition) There are many others which are providing it.



          After enable, you will get ipv6 along with ipv4 like below:



          enter image description here



          Surprisingly application was working over ipv6 after implementing it in Android as well as iOS too.






          share|improve this answer


























          • API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

            – M.Neelima
            Jan 3 at 11:03











          • it varies for different servers. either you find respective documentation or contact to technical-support.

            – Rumit Patel
            Jan 3 at 12:30
















          1














          Not every server provide ipv6 protocol by default.



          And some servers do not support it too. you need to contact your server-provider to get information about whether they are providing ipv6 or not.



          Then you need to enable ipv6.



          In our case Godadday was not providing ipv6. (I am not sure with today's condition) There are many others which are providing it.



          After enable, you will get ipv6 along with ipv4 like below:



          enter image description here



          Surprisingly application was working over ipv6 after implementing it in Android as well as iOS too.






          share|improve this answer


























          • API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

            – M.Neelima
            Jan 3 at 11:03











          • it varies for different servers. either you find respective documentation or contact to technical-support.

            – Rumit Patel
            Jan 3 at 12:30














          1












          1








          1







          Not every server provide ipv6 protocol by default.



          And some servers do not support it too. you need to contact your server-provider to get information about whether they are providing ipv6 or not.



          Then you need to enable ipv6.



          In our case Godadday was not providing ipv6. (I am not sure with today's condition) There are many others which are providing it.



          After enable, you will get ipv6 along with ipv4 like below:



          enter image description here



          Surprisingly application was working over ipv6 after implementing it in Android as well as iOS too.






          share|improve this answer















          Not every server provide ipv6 protocol by default.



          And some servers do not support it too. you need to contact your server-provider to get information about whether they are providing ipv6 or not.



          Then you need to enable ipv6.



          In our case Godadday was not providing ipv6. (I am not sure with today's condition) There are many others which are providing it.



          After enable, you will get ipv6 along with ipv4 like below:



          enter image description here



          Surprisingly application was working over ipv6 after implementing it in Android as well as iOS too.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 3 at 7:23

























          answered Jan 3 at 7:14









          Rumit PatelRumit Patel

          1,86452536




          1,86452536













          • API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

            – M.Neelima
            Jan 3 at 11:03











          • it varies for different servers. either you find respective documentation or contact to technical-support.

            – Rumit Patel
            Jan 3 at 12:30



















          • API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

            – M.Neelima
            Jan 3 at 11:03











          • it varies for different servers. either you find respective documentation or contact to technical-support.

            – Rumit Patel
            Jan 3 at 12:30

















          API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

          – M.Neelima
          Jan 3 at 11:03





          API is not loading with mobile data even though our server is supported for ipv6. Please give suggestions to change the settings on the server side.

          – M.Neelima
          Jan 3 at 11:03













          it varies for different servers. either you find respective documentation or contact to technical-support.

          – Rumit Patel
          Jan 3 at 12:30





          it varies for different servers. either you find respective documentation or contact to technical-support.

          – Rumit Patel
          Jan 3 at 12:30


















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017640%2fwhy-apis-are-not-working-in-ipv6-protocol%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

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas

          Can't read property showImagePicker of undefined in react native iOS