How this is done will also be explained in the documentation. My macOS firewall is not turned on, so there is not a problem as far as I know with the particular port being actively blocked. Enter the IP in the browser of your windows machine and voilà. Go to your system preferences -> network. For this you have to get the IP-Address of your mac. i want to access my localhost website from my windows 7 computer. In the output that follows, the place that I have marked as ip address is your local ip address Output. Im currently on a mac installed, ran and hosted a local website using xampp. Just run the following command in your terminal. This is normally a really bad idea, I would strongly recommend turning it on. If you need to use the ip address of your mac instead of using localhost, here is an easy way to find the ip address of your mac via the command line. NB: The info you gave on the router/modem stated that it's firewall is deactivated. When I was halfway through the tutorial, Localhost did work, its something later on that stopped it working. When I go to Localhost/benthompson it works fine. Instead, you would either use 127.0.0.1, which would only work on your XP box, or 192.168.254.4, which would be accessible from any computer in your home LAN.Ĭould you edit your original question and tell us why you want to use the IP address instead of the first place? When I go to Localhost I get the following error: Forbidden You dont have permission to access / on this server. with this page: - then try to see if you can get a connection from your iPad by using the found IP-adr. To test if it is working, type this IP address in your desktop browser where your localhost server is installed. This is the IP which you need to access your localhost on your Android phone over wifi. Mac, and Linux iOS Yes loco/host Smartphones and tablets Mac Nokia 540 Yes loco/host Phones Windows Windows Phone Yes localhost. However, this is a terrible idea if you just want to test things and don't need others to access it. Another solution could be to find your public IP-adr. In my case, my local area network address is 10.0.0.2. You should be able to change the listen address to be 127.0.0. My guess is that it is binding to ::1 (IPv6 localhost). If you really would want to connect to the XAMPP server with this public IP address, you would need to configure your router to forward port 80 to your XP machine so that it is accessible from the outside (you will find how that is done in the routers documentation). How are you binding to the address in your app. Step 1: Get IP Friend for macOS (Free) Go the Mac App Store and download IP Friend. When you try to connect to your public IP address, you are in fact reaching your router, not your XP box. By default, your iPhone or iPad wont be able to access an app thats running on localhost on your desktop (unless youre running the simulator). OK, so with the info you gave here, it is now clear what the problem is (and that this belongs on instead of Serverfault). Do you have a Modem/router type device to connect to the internet? It sounds like you are connecting to the configuration interface for this.Īlternatively: On what platform do you use XAMPP? Could you post the output of ipconfig in Windows or sudo ifconfig in Linux/MacOS?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |