How this is done will also be explained in the documentation. This is normally a really bad idea, I would strongly recommend turning it on. NB: The info you gave on the router/modem stated that it's firewall is deactivated. My /etc/hosts is the standard setup: egrep localhost /etc/hosts localhost is used to configure the loopback interface 127.0.0. 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? Ive encountered a really strange Mac problem: Safari is unable to connect to localhost whereas all other applications can connect as normal (Firefox, Chrome, ping, etc.). This can be done from a mobile device or other Mac. However, this is a terrible idea if you just want to test things and don't need others to access it. Type in the local ip of Mac with your MAMP PRO installed and running to access your 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). To access host machine from the docker container you must attach an IP alias to your network interface. When you try to connect to your public IP address, you are in fact reaching your router, not your XP box. You should be able to change the listen address to be 127.0.0. Note, I dont have static IP, its dynamic IP. My guess is that it is binding to ::1 (IPv6 localhost). Whats is the problem My firewall disabled on the mac. Go to VirtualBox Preferences -> Network -> Host-only Networks -> click the '+' icon. How are you binding to the address in your app. with this page: - then try to see if you can get a connection from your iPad by using the found IP-adr. Check to make sure your IP is correct for your host machine. To enable this on OSX I had to do the following: Shut your virtual machine down. OK, so with the info you gave here, it is now clear what the problem is (and that this belongs on instead of Serverfault). Another solution could be to find your public IP-adr. 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 |