Reputation: 131208
I would like to write a computer game played by several users sitting in front of different computers. For that I would like to implement a P2P approach.
Now I consider the following situation. I have, let say, 6 computers which build a local network. On every computer I install Apache web server. So, every computer runs a web site. In this context I have several questions:
What will be the web addresses of these web sites? Names of the computers?
Does apache server starts automatically whenever computer starts?
Do I have to install something additional if I want to write "local" web-sites using PHP or Apache is sufficient?
Thank you in advance for any help.
Upvotes: 1
Views: 351
Reputation: 6202
In my network I have on my server an apache server. My server is called "server", so I just type in others workstations http://server
. Other tip is put in your host files this resolution:
192.168.0.100 server
The IP is just an example, if you have three workstations and want to access them like:
http://machine1
http://machine2
http://machine3
You would have in your host files:
192.168.0.1 machine1
192.168.0.2 machine2
192.168.0.3 machine3
So...
1) Yes, if you set your computers name in your host files like I said above 2) Apache will start automatically if is registered as a service. 3) Yes. Apache is what you need to write local websites using PHP (If you want MySql too, then install it)
Upvotes: 0
Reputation: 900
Nope, unless your "local" website, sometimes called intranets, has an application that depends on it.
Just get a good LAMP or WAMP stack, and you're set.
You will also have to configure firewalls on the servers, this again is platform dependent.
Upvotes: 2