Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I'm stumped!

I'm stumped!

Scheduled Pinned Locked Moved The Lounge
csharpjavascriptcloudhelpquestion
28 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jochance

    sub.localhost makes no sense to me at all. If we are saying localhost, it's a given that everything is at 127.0.0.1. Maybe there is some reason you need *different* domains though for local app<->service. In that case, I would ditch sub.localhost and go with something more akin: myappservice 127.0.0.1 myapp 127.0.0.1 added to %windir%/system/drivers/etc/hosts

    Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #5

    The sub domain is any customer location code. So it's loc1.localhost or loc2.localhost. I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

    J 1 Reply Last reply
    0
    • R RainHat

      Hmm, localhost is not technically a domain name, so I guess that is why it is elephanting when trying to resolve a sub domain from it. Two things I can think of to try: 1. use sub.127.0.0.1:1234 (or possibly sub."127.0.0.1":1234 2. add sub.localhost to your hosts file. (pointing to 127.0.0.1 or localhost) Good luck

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #6

      RainHat wrote:

      so I guess that is why it is elephanting when trying to resolve a sub domain from it

      But only under specific (unknown) circumstances, like being at the office or having a VPN. I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      J 1 Reply Last reply
      0
      • M Mircea Neacsu

        From comments at top of hosts file:

        # localhost name resolution is handled within DNS itself.

        127.0.0.1 localhost

        ::1 localhost

        If I add a line to hosts file:

        127.0.0.2 sub.localhost

        then I can do:

        >ping sub.localhost

        Pinging sub.localhost [127.0.0.2] with 32 bytes of data:
        Reply from 127.0.0.2: bytes=32 time<1ms TTL=128

        Mircea

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #7

        I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        M J 2 Replies Last reply
        0
        • Sander RosselS Sander Rossel

          I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

          M Offline
          M Offline
          Mircea Neacsu
          wrote on last edited by
          #8

          I think at least some browsers (Chrome, I'm looking at you!) have their own DNS resolver. VPN adds another level of weirdness and anyway localhost is not a valid domain name. Are you trying to solve all the possible interactions between these parts or you just want your app to work? If it's the first one, I'd like to hear the result, maybe in an article or tip here. If it's the second, just add a line to your hosts file. It has the highest priority in the DNS resolving order[^] and it just works.

          Mircea

          1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

            Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #9

            I think your workplace might have some dodgy network group policies/filters.

            Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

            J Sander RosselS 2 Replies Last reply
            0
            • Sander RosselS Sander Rossel

              The sub domain is any customer location code. So it's loc1.localhost or loc2.localhost. I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

              Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

              J Offline
              J Offline
              jochance
              wrote on last edited by
              #10

              If the subdomains are also located on different subnets things get more hairy than a Minoxidil spill. Running things local, all should work with the host file entries for 'real' domains... .myapp and .myappservice is probably what I would pick. I think maybe there is confusion about the routing happening server-side vs client? Which really just depends on the code. If the code to hit the service is c# server-side vs something like an inline json call from js, then which DNS resolution (and which hosts file, client v server) is getting used would be different.

              1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                RainHat wrote:

                so I guess that is why it is elephanting when trying to resolve a sub domain from it

                But only under specific (unknown) circumstances, like being at the office or having a VPN. I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

                Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                J Offline
                J Offline
                jochance
                wrote on last edited by
                #11

                When you say you cannot ping it, do you mean you get no response or you get no name resolution? Try powershells from the machines where the app is running if you can...

                Test-NetConnect -p

                ... I may be off on some of that syntax.

                1 Reply Last reply
                0
                • H honey the codewitch

                  I think your workplace might have some dodgy network group policies/filters.

                  Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                  J Offline
                  J Offline
                  jochance
                  wrote on last edited by
                  #12

                  I'm suspicious of that too, especially with new AI network monitors/thwarters... But it would be super weird for them to muck with overriding the hosts file though?

                  H 1 Reply Last reply
                  0
                  • J jochance

                    I'm suspicious of that too, especially with new AI network monitors/thwarters... But it would be super weird for them to muck with overriding the hosts file though?

                    H Offline
                    H Offline
                    honey the codewitch
                    wrote on last edited by
                    #13

                    I amended my comment to include group policies, which can do strange things to a machine.

                    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                    J 1 Reply Last reply
                    0
                    • H honey the codewitch

                      I amended my comment to include group policies, which can do strange things to a machine.

                      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                      J Offline
                      J Offline
                      jochance
                      wrote on last edited by
                      #14

                      That's true... and which domain you are logging onto and whether you're "inhouse" or ingressing through a VPN or something could change which get applied. It could send you to different DNS servers (to help hide internal resources in domains that were more "edge"-closer to DMZ).

                      1 Reply Last reply
                      0
                      • H honey the codewitch

                        I think your workplace might have some dodgy network group policies/filters.

                        Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                        Sander RosselS Offline
                        Sander RosselS Offline
                        Sander Rossel
                        wrote on last edited by
                        #15

                        The only difference is a different Wi-Fi (shared with other tenants). We don't have a work network, domain controller, etc.

                        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                        H 1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          The only difference is a different Wi-Fi (shared with other tenants). We don't have a work network, domain controller, etc.

                          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                          H Offline
                          H Offline
                          honey the codewitch
                          wrote on last edited by
                          #16

                          Well I guess the good news is that simplifies the situation considerably. The bad news is I have no idea what your next troubleshooting move should be.

                          Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                          1 Reply Last reply
                          0
                          • Sander RosselS Sander Rossel

                            I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

                            Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                            K Offline
                            K Offline
                            kmoorevs
                            wrote on last edited by
                            #17

                            It's not the Azure network gateway is it? Last weekend working away from home and needed to rdc into an Azure VM meant that I had to add the IP address where I was connected to the inbound Accept rules in order to connect. Just a thought... Good luck!

                            "Go forth into the source" - Neal Morse "Hope is contagious"

                            1 Reply Last reply
                            0
                            • Sander RosselS Sander Rossel

                              I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

                              Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                              J Offline
                              J Offline
                              jschell
                              wrote on last edited by
                              #18

                              Sander Rossel wrote:

                              but my web app can't access the service ("no such host is known")...("no such host is known").

                              This is not a "service" problem. It is a connectivity problem. So you need to diagnose that and stop focusing on the service. In the modern era you can and probably should always start with diagnosing connectivity using telnet. Since all modern sites use IP/TCP telnet is an excellent tool to test that. If you can connect via telnet then there is no connectivity issue. If not then there is. It is just that simple. Nothing else matters in that context. For example SSL/TLS has no impact on it. Looks like you are also using a host name and not an IP address. You can use a DNS lookup tool like 'nslookup' to determine the IP. DNS processing is a separate service which can fail all by itself. If you can verify the look up then after that you should use the IP only since it removes that extra service lookup (and failure possibility.) Again you use telnet with the IP to check. Now if you verify that it is not a connectivity issue then you can look at the service. For example firewall rules can block specific http requests. Also commenting on the thing about the hosts file and browsers. That was curious so I looked that up and found the following which doesn't make it all that clear what might be expected. https://stackoverflow.com/questions/42636711/google-chrome-ignoring-hosts-file[^] But what is clear is that using the IP makes al of that irrelevant. As one other bit of advice when using the browser - do not leave any open browser windows when testing. So no other sites. Despite things like incognito it still caches stuff. So every single browser must be closed. Or at least that was true a few years ago.

                              J 1 Reply Last reply
                              0
                              • J jschell

                                Sander Rossel wrote:

                                but my web app can't access the service ("no such host is known")...("no such host is known").

                                This is not a "service" problem. It is a connectivity problem. So you need to diagnose that and stop focusing on the service. In the modern era you can and probably should always start with diagnosing connectivity using telnet. Since all modern sites use IP/TCP telnet is an excellent tool to test that. If you can connect via telnet then there is no connectivity issue. If not then there is. It is just that simple. Nothing else matters in that context. For example SSL/TLS has no impact on it. Looks like you are also using a host name and not an IP address. You can use a DNS lookup tool like 'nslookup' to determine the IP. DNS processing is a separate service which can fail all by itself. If you can verify the look up then after that you should use the IP only since it removes that extra service lookup (and failure possibility.) Again you use telnet with the IP to check. Now if you verify that it is not a connectivity issue then you can look at the service. For example firewall rules can block specific http requests. Also commenting on the thing about the hosts file and browsers. That was curious so I looked that up and found the following which doesn't make it all that clear what might be expected. https://stackoverflow.com/questions/42636711/google-chrome-ignoring-hosts-file[^] But what is clear is that using the IP makes al of that irrelevant. As one other bit of advice when using the browser - do not leave any open browser windows when testing. So no other sites. Despite things like incognito it still caches stuff. So every single browser must be closed. Or at least that was true a few years ago.

                                J Offline
                                J Offline
                                jmaida
                                wrote on last edited by
                                #19

                                It's the devil's work. :confused:

                                "A little time, a little trouble, your better day" Badfinger

                                1 Reply Last reply
                                0
                                • Sander RosselS Sander Rossel

                                  I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

                                  Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                  J Offline
                                  J Offline
                                  Jeremy Falcon
                                  wrote on last edited by
                                  #20

                                  Sander Rossel wrote:

                                  When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us.

                                  When something is all over the place like this, it's best to remove as many variables as possible. As such, if not yet done, a traceroute should be done in each and every environment both on and off the VPN. It could be anything from your coworker updating his hosts file without saying so or even a regional thing where you're hitting a different server. Who knows, but a traceroute will help figure that out.

                                  Sander Rossel wrote:

                                  We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate.

                                  Exactly how though? A local or localhost domain generally doesn't go through DNS. I mean it can, but it's typically considered private. Is this a public DNS server or something internal only?

                                  Sander Rossel wrote:

                                  When I remove the subdomain everything works.

                                  This is what I'm guessing the issue is. It's just a guess, but in DNS lingo a subdomain is a _typically_ CNAME. A top level domain is an A record usually. If you try to add a "sub domain" as an A/SOA record, that's considered advanced and not needed for most situations where you're running things on the same server. So perhaps Azure (assuming this is a public DNS server) just isn't happy with the way it was entered.

                                  Jeremy Falcon

                                  Sander RosselS 1 Reply Last reply
                                  0
                                  • Sander RosselS Sander Rossel

                                    I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage. It doesn't work in Azure either, which is even weirder, since all subdomains are registered in a DNS within a "proper" domain.

                                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                    J Offline
                                    J Offline
                                    Jeremy Falcon
                                    wrote on last edited by
                                    #21

                                    Sander Rossel wrote:

                                    I've thought about the hosts file, but that won't explain why it works in my browser, but I can't ping it and why it works at home, but not at the office and that my coworker has a varying mileage.

                                    A lot of servers disable pings to help prevent a DoS. Unless you're positive your server accepts pings, you'd be better of doing an ns lookup to see if it's going to be resolved or not.

                                    Jeremy Falcon

                                    1 Reply Last reply
                                    0
                                    • Sander RosselS Sander Rossel

                                      I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

                                      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                      J Offline
                                      J Offline
                                      Jeremy Falcon
                                      wrote on last edited by
                                      #22

                                      Also, you should flush the DNS cache on every machine that attempts to access anything before even thinking about troubleshooting. DNS propagation isn't too long of a wait, but it's most certainly not instant. So, if you're debugging something, always flush your DNS cache first. For Windows it's ipconfig /flushdns. Also, it wouldn't hurt to know the TTL for the DNS server in question for each machine. This assuming you're not using your ISPs DNS server, which you most likely are. Although some ISPs will list their TTL. Note, this doesn't apply to a host file, but it most certainly does for a DNS server.

                                      Jeremy Falcon

                                      1 Reply Last reply
                                      0
                                      • Sander RosselS Sander Rossel

                                        I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

                                        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                        S Offline
                                        S Offline
                                        Stefan Schmiedl
                                        wrote on last edited by
                                        #23

                                        A while ago, I had a test site setup with both A and AAAA records in DNS. Worked fine "from home", failed to connect "via VPN". Guess what: My VPN config had IPv6 disabled, but still tried to connect using the AAAA IPv6 address.

                                        1 Reply Last reply
                                        0
                                        • Sander RosselS Sander Rossel

                                          I'm not even sure if this is a programming question, a networking question, a Windows question... I'm completely at a loss of where to look! I'm developing a web app with a service in ASP.NET 8, both need a subdomain. So I have sub.localhost:1234 for the web app and sub.localhost:5678 for the service. I can access both in my browser, but my web app can't access the service ("no such host is known"). When I'm at home, it works. When I'm at home and on VPN it doesn't work. It works with and without VPN for my coworker, but only from home. At the office, it doesn't work with or without VPN for both of us. At first I though the VPN was the problem because at home it worked without the VPN, but today I'm at the office and it doesn't work at all (even though I developed this service at the office!). We've deployed both in an Azure app service with the subdomain properly registered in the DNS and a valid certificate. The web app can't access the service, again because "no such host is known". We can, however, access the service in Azure from our development environment (sub.localhost:1234), but for me only without VPN and for my coworker only with VPN and only from home. We can access the service from its Azure domain (e.g. myservice.azurewebsites.net). The plot thickens, because for my coworker one specific controller does seem to work at the office, but not from home (it doesn't work for me at all). The controller isn't particularly interesting. When I remove the subdomain everything works. It seems completely random and I can't even think of where to look... At least I can rule out it's not a firewall issue (turned it off completely with no result). Has anyone seen this before or have a clue of where to look?

                                          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                          P Offline
                                          P Offline
                                          Peter Adam
                                          wrote on last edited by
                                          #24

                                          tracert shows different paths to the domain?

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups