Cannot access my website using WIFI

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Cannot access my website using WIFI

Postby tristanforsyth » 16. January 2023 10:30

First-time poster so please be gentle as this is a weird one!

Running XAMPP on a mac mini at home as a webserver. Nothing serious, just more for photos etc

I have just installed the latest version of XAMPP )(8.2.0?) and got it up and running with no dramas. The setup seemed to be a breeze which was a pleasant surprise as I have come from the MAMP world but was happy to uninstall it!

Apache is running, MySQL is running and ProFTPD is running (though I still have to play around with this one as it's my first time trying an FTP server).

When I use my URL (www.tristanforsyth.com) via my laptop on my home WIFI, I get a timeout error (that somehow defaults to /lists an IP that isn't my IP in the error message!)

Switch to my phone and use 4/5G, I can see the XAMPP dashboard screen in Safari only (still get a time out using Chrome).
NB:Ive left the dashboard as my landing page for the moment but have successfully limited access to phpadmin etc to local server access only

I have had some issues with my domain registrar with regard to my settings, but all seems to be now working from their end. They went as far as to confirm by a screenshot that they can see my website via www.tristanforsyth.com.
NB: everything was running fine via MAMP a week ago before my registrar upgraded their nameservers

So, it seems local network access isn't working via a browser which is problematic as Im running a Wordpress site from my home server!

Im stubborn so I want to work this one out though I will admit, I thinking of going to paid hosting to eliminate the headaches (but take the fun out of things!!)

Does anyone have have any ideas as to what Ive done wrong?

Thanks in advance
tristan
tristanforsyth
 
Posts: 1
Joined: 16. January 2023 10:10
XAMPP version: 8.2.0
Operating System: OSX

Re: Cannot access my website using WIFI

Postby Nobbie » 17. January 2023 13:27

When i enter "http://www.tristanforsyth.com/" into my Browser, i get an error "too many redirects". That means, your homepage can be reached from outside, but somewhere in your configuration (i.e. .htaccess or httpd.conf or in a PHP Script) you are doing an infinite redirect.

With commandline "wget http://www.tristanforsyth.com/" i can receive a small index.html which contains this:

Code: Select all
<!DOCTYPE html>
<html  >
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  <link rel="shortcut icon" href="assets/images/logo5.png" type="image/x-icon">
  <meta name="description" content="">

  <title>Home</title>
  <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="assets/bootstrap/css/bootstrap-grid.min.css">
  <link rel="stylesheet" href="assets/bootstrap/css/bootstrap-reboot.min.css">
  <link rel="stylesheet" href="assets/theme/css/style.css">
  <link rel="preload" href="https://fonts.googleapis.com/css?family=Jost:100,200,300,400,500,600,700,800,900,100i,200i,300i,400i,500i,600i,700i,800i,900i&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
  <noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Jost:100,200,300,400,500,600,700,800,900,100i,200i,300i,400i,500i,600i,700i,800i,900i&display=swap"></noscript>
  <link rel="preload" as="style" href="assets/mobirise/css/mbr-additional.css"><link rel="stylesheet" href="assets/mobirise/css/mbr-additional.css" type="text/css">
</head>
<body>

  <section data-bs-version="5.1" class="image2 cid-tt6d6YjpzI" id="image2-n">

    <div class="container">
        <div class="row align-items-center">
            <div class="col-12 col-lg-6">
                <div class="image-wrapper">
                    <a href="http://www.tristanforsyth.com/blog"><img src="assets/images/family-532x639.jpg" alt="click to enter site"></a>
                    <p class="mbr-description mbr-fonts-style mt-2 align-center display-4">
                        <center>The Family<center/></p>
                </div>
            </div>
            <div class="col-12 col-lg">
                <div class="text-wrapper">
                    <h3 class="mbr-section-title mbr-fonts-style mb-3 display-1">
                        <strong>Welcome</strong></h3>
                    <p class="mbr-text mbr-fonts-style display-2">to tristanforsyth.com<br><br><a href="http://www.tristanforsyth.com/blog" class="text-primary">click to enter main site</a></p>
                </div>
            </div>
        </div>
    </div>
</section>
<center>Made with minimal effort and licorice tea.....<BR>
    All content &copy; 1995-now to Tristan Forsyth except where noted.<BR> Version 11ty Million of this site <center/>
    <!-- Badge Code - Do Not Change The Code -->
<a class="hitCounter" href="https://visitorshitcounter.com/" target="_blank" title="Hit counter" data-name="b583d8fd129fd06f316bec48c1799e3b|5|external|1|#ffffff|#000000|small|s-hit">Hit Counter</a><script>document.write("<script type='text/javascript' src='https://visitorshitcounter.com/js/hitCounter.js?v="+Date.now()+"'><\/script>");</script>
<!-- Badge Code End Here -->
</body>
</html>


Seems your server is working properly, but there seems to be a misconfiguration with a redirect.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Cannot access my website using WIFI

Postby Nobbie » 17. January 2023 13:39

Aha, now it works, i am getting a photo and "Welcome to tristanforsyth.com". But if I click the link for "click to enter the main site", the URL changes to "tristanforsyth.com/blog" but i get an Error 403 (access error). An 403 error usually means that there is no such file or directory or it cannot be read from Apache (due to missing file rights).
Last edited by Nobbie on 17. January 2023 13:55, edited 1 time in total.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Cannot access my website using WIFI

Postby Nobbie » 17. January 2023 13:47

If your site is visible from outside, but not from inside your (W)LAN, then this typically is a problem of your router. The problem is known by the name "NAT loopback" and it describes the following situation:

You router is assigned to the internet with a public IP. A remote request via Port 80 (mostly) is redirected to a local IP (i.e. 192.168.x.x). This is called "NAT". If the origin of that request already comes from the internal LAN, the Router must accomplish a so called "NAT Loopback" (as the request already comes from a local IP and goes to a local IP). Not all routers supports that. It looks, as if this could be your problem. Sadly, there is no workaround. The only solution is: getting another Router (which supports NAT Loopback). For example, the german AVM Routers ("Fritzbox") are working nicely.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 26 guests