![]() ![]() You can choose a hostname at their domain (such as ) and your friend can then always access your website by simply going to in his browser. I strongly recommend using DynDns, which is absolutely free. Having done all that, your friend should now be able to access your webpage by going to his web browser on his machine and entering (the same one you see when you go here ).Īs mentioned earlier, the IP address assigned to you by your ISP will eventually change whether you sign offline or not. Restart your router and the changes should take effect. Enter the application name (whatever you want to call it), start port (80), end port (80), protocol (TCP), ip address (using the above example, you would enter 192.168.1.102, which is the static IP you assigned your server), and be sure to check to enable the forwarding. Two examples of how to do this can be found here and here, although the exact screens you see will vary depending on the manufacturer of your router (Google for exact instructions, if needed).įor the Linksys router I have, I enter, enter my username/password, Applications & Gaming tab > Port Range Forward. However, you need to tell your router that when it gets a request for a webpage, forward that request to your server. I even set my passwords to access the server. When your friend accesses your website, you'll give him this IP. Initially xampp was working fine and I could access my localhost with no problem. If you look up your IP address (such as ), the IP you see is actually the IP of your router. After the above step is completed, you should be able to get to the website on your local machine by going to both and, since your computer will now always have that IP address on your network. ![]() Instructions for how to do this can be found: hereįor example, let's say you picked the IP address 192.168.1.102. I found another solution.First, you need to configure your computer to get a static IP from your router. so the other solution is to disable TCP/IP v6 protocol of your network interface (so Vista won't try to resolve your hostname to an ipv6 address) (we aren't using ipv6 yet anyways) Control panel -> network central -> manage client adapters -> local connection (your NIC).properties -> untick TCP/IP v6 protocol -> Done Step 1: Download XAMPP Go to Apache Friends, and download XAMPP. ![]() It is a local environment for all kinds of development and testing before the website or software goes to the production site. The location C:xamppapache is the default location of Apache server if you have XAMPP. Localhost is a local web server for developers to do web development and testing. ::1 localhost line in hosts file is a mapping in TCP/IP v6 protocol, if you comment it, it won't solve your problem Download these two files and save them to a folder C:xamppapachessl. (This is not a good solution for me because my ip is always changing thru my networks.) call the apache web server address not by hostname but ip address. 127.0.0.1 still work though but I want localhost back if possible. However, I noticed that typing in 'localhost'in the address bar no longer delivers me to the XAMPP home page, diverting me instead to IIS Windows. There are 2 workarounds to handle slowness: I was working with XAMPP one when I tried using WAMP. Cliccate sul pulsante admin del vostro server Apache per arrivare all’indirizzo del vostro web server. Note: Do NOT close console window if it is not closed automatically. Per ogni modulo di XAMPP nel pannello di controllo è a disposizione il tasto admin. I removed all comments for shorter one and pasted this just below the default virtualHost just change the DocumentRoot and servername then Restart apache. I just copied the default virtualhost and added my config. Go to nf located at xamppapacheconfextra. Start the setupxampp.bat and beginning the installation. your windows HOST file must already be setup. 127.0.0.1 mylocalapp.test mylocalapp.local You can add as many domain names as you want by separating them with space. Step 2: Add 127.0.0.1 and custom domain at the end of file. For that open, any text editor in administrator mode then navigate to hosts file. On my desktop I use my laptop's hostname to open pages in firefox. search for ServerName localhost:443 and change to ServerName localhost:449 4. Step 1: Go to C:\Windows\System32\drivers\etc and edit hosts file as Administrator. In my scenario I use EasyPHP on my laptop (W7) and I use my desktop and work pc (Vista) to look at my work in other resolution/browser/auto-refreshed etc.ĮasyPHP also uses Apache+PHP+MySQL just like xampp. Based on hosts-file comment i found out why it is so slow to render one page. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |