Unable to connect to web interface

I’ve been on a multi-hour struggle to try and troubleshoot why I cannot connect to my .local address or even my pi’s IP address, either of which should bring up mainsail. I can connect to the pi via SSH and have done a fresh install of raspberry pi operating system and klipper/moonraker/mainsail via KIAUH twice. I’ve done the exact same install on an identical RPI that is working flawlessly.
the .local address and the pi’s direct IP address do nothing, but if I add :7125 at the end it pulls up:
"Welcome to Moonraker

You may have intended to navigate to one of Moonraker’s front ends, if so check that you entered the correct port in the address bar."

At this point I need a break and am completely exhausted trying to figure it out.
I have another raspberry pi running a print right now. I’ll shutdown that pi and try to connect again, maybe it has something to do with the fact there’s another pi running. they do not have the same .local address or IP address, they’re both perfectly unique. Maybe something to do with the ports. I just don’t know and am exhausted.

goodnight i’ll edit in the morning.

OK, so apparently the direct IP with port will take me into mainsail, but the .local address just shows up with ‘unable to connect’. looking more into this I guess .local addresses default to port 80 so my first rpi was already running on port 80 so when I tried my new testbench.local, I didn’t realize it would default to port 80. as soon as I entered testbench.local:107, it worked. I also installed itunes to get bonjour running but I’m not entirely sure that was what solved it just try the :port number first and then try installing itunes to get bonjour running.

anyhow, hope this maybe helps somebody. I’M THE IDIOT. <3

Looks like you are mixing different topics:

  • Your router is typically the authoritative DNS server for small LAN networks and, depending on the type, automatically takes care of .lan, .home, or similar top level domains (TLDs). This is not standardized and may differ from router to router
  • A service like avahi or bonjour are called multicast DNS (mDNS) and automatically take over .local (standardized in some RFC). Care should be taken to avoid conflicts with the upstream DNS.
  • A device in your LAN typically has a hostname, such as raspberry.
  • The combination of a hostname and a TLD, like raspberry.local, is called a fully qualified domain name (FQDN).
  • When you enter either an IP address or a FQDN in a browser, it is automatically routed to port 80 (HTTP). If you prepend it with https, it is routed to port 443.
  • To reach any other port, you need to specify it explicitly.