DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

How to access dnn site via intranet IP and Public IP

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>





New Around Here





    I have worked on a new project that is running on in-house web server. I need to run the site from Internal IP as well as Public IP. The serve is perfectly accessible via both IP's.

    The only problem is, whenever I access the DNN site it redirects me to the primary IP set under the site setting > site aliases

    Note:

    • I am using DNN new version for this project (v. 09.04.01 (22))
    • All IP aliases are already added in the site alias 
    • All other classic .net sites working perfectly with the same scenario

    Currently, the web application is working perfectly with the public IP (81.XXX.XX.XX). Just i want that site will not redirect to the public IP when I access it through a local address like (10.100.200.3) 

    Looking forward for your urgent suggestions 

    Regards 

    3ART TechnologiesRegards,
    Rashid Imran Bilgrami

    3ART Technologies
    Experts in Analysis, Design & Development for DNN and SharePoint Solution
    http://www.3art.tech/





    Advanced Member





      In Site Settings, under the Site Aliases section, make sure you're using the Canonical mode instead of Redirect.

      Hope it helps!
      DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase





      Advanced Member





        Also, after you change that setting, your browser may have cached some of the 301 redirects, so try using an incognito/private browser tab to test.
        DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase





        Veteran Member





          make sure, the alias with the public IP address is (tho only one that is) marked as "primary".





          New Around Here





            Hi,

            Thanks for the reply. The default setting is Canonical, I also tried None (also not workable), and redirect it's is working but public ip its working fine but when I hit the local address it redirects me to the development URL.

            Regarding the cache, I know that I already checked it incognito. 

             

            3ART TechnologiesRegards,
            Rashid Imran Bilgrami

            3ART Technologies
            Experts in Analysis, Design & Development for DNN and SharePoint Solution
            http://www.3art.tech/





            New Around Here





              I only mark the public address as the primary

              http://82.***.***.***:9003/ 
              http://82.***.***.***:9003/en-us
              http://82.***.***.***:9003/ar-sa

              These three public is consider as primary 

              3ART TechnologiesRegards,
              Rashid Imran Bilgrami

              3ART Technologies
              Experts in Analysis, Design & Development for DNN and SharePoint Solution
              http://www.3art.tech/





              New Around Here





                I am really looking for this solution because that stuck in the middle 

                3ART TechnologiesRegards,
                Rashid Imran Bilgrami

                3ART Technologies
                Experts in Analysis, Design & Development for DNN and SharePoint Solution
                http://www.3art.tech/





                Veteran Member





                  If this is a multi-languages site with 2 languages, http://82.***.***.***:9003/   should not be set to primary IMO.






                  Advanced Member





                    Yeah, hitting the URL without language will redirect to the primary. I don't know of any workaround for that behavior.
                    DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase





                    New Around Here





                      Thank timo if this one is not the primary than what can i make the primary one http://82.***.***.***:9003/ 
                      http://82.***.***.***:9003/ar-SA
                      http://82.***.***.***:9003/en-US

                       Let me try this also 

                       

                      3ART TechnologiesRegards,
                      Rashid Imran Bilgrami

                      3ART Technologies
                      Experts in Analysis, Design & Development for DNN and SharePoint Solution
                      http://www.3art.tech/
                      You are not authorized to post a reply.
                      Page 1 of 212 > >>

                      These Forums are dedicated to the discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved