ip addresses (Forum tag) http://www.turnkeylinux.org/forum/term/1139/0/feed en My virtual IP Addresses don't work http://www.turnkeylinux.org/forum/support/20120508/my-virtual-ip-addresses-dont-work <p>I&#39;ve set up a LAMP server that is designed to host two websites.&nbsp;&nbsp; This LAMP server is one of two computers that is connected to a router in my home.&nbsp; The other computer (which is also connected to the router) is a machine that is running Windows XP.</p> <p>Each of the two websites, that I&#39;m trying to host, are using virtual IP addresses that I set up on the server.&nbsp; However, I have since learned that these two websites can only be viewed using the Windows XP computer that&#39;s connected to the router.&nbsp; If I try to view the websites outside of my home with a completely different computer, the websites simply don&#39;t load.&nbsp; I want to know why, and I want to know how to solve this problem.</p> <p>The two websites are being hosted with virtual IP addresses.&nbsp; I suspect that the problem may have something to do with the IP addresses that I&#39;m using, but I&#39;m not sure.&nbsp; Let me explain how I chose the two IP addresses that are used for each of the websites.</p> <p>I first typed &quot;ifconfig&quot; at the Linux prompt on the server computer in order to get the IP address for the server computer.&nbsp; Once I had this IP address, I pinged two IP addresses that are similiar to it.&nbsp; For instance, if the server IP address was, I pinged and in order to make sure that they weren&#39;t already in use.&nbsp; Once I saw that they were not in use, I decided to use them as static IP addresses for my two websites.&nbsp; So I set up all three IP addresses (including the one for the server) as static IP addresses by declaring them as such in corresponding &quot;ifcfg-ethX&quot; files, where &quot;X&quot; denotes the ethernet connections.&nbsp; So I have three of these files.&nbsp; One is for the server IP address, and the other two are for the virtual IP addresses for the websites.&nbsp; So the files are named as the following: ifcfg-eth0, ifcfg-eth0:1 and ifcfg-eth0:2.&nbsp; Each of the files are set up as static IP addresses that I got by means of the way that I described earlier.</p> <p>After setting up the websites, I&#39;m able to view them with a browser on my WindowsXP computer.&nbsp; If I type the IP addresses in the browser, the websites come up with no problem.&nbsp; However, this doesn&#39;t work on computers that are outside of my home.</p> <p>I hope that someone is able, and willing, to tell me what I&#39;m doing wrong so that these websites may become accessible to everyone in the outside world.&nbsp; What am I doing wrong?</p> <p>Thanks for your time.</p> http://www.turnkeylinux.org/forum/support/20120508/my-virtual-ip-addresses-dont-work#comments Support ip addresses lamp virtual hosting Tue, 08 May 2012 04:45:20 +0000 Steven Evans 3444 at http://www.turnkeylinux.org