Create website in private network (intranet) [XAMPP]?

Wi
6

I'm looking for a way to create a website on the home network. With XAMPP I created my first website, but I can only access it with my laptop (with XAMPP). Now I want to access it with my cell phone & PC (all in the same network).

Can I do this with XAMPP / other option?

LG HaMbUrGeR

Create website in private network intranet XAMPP
pl

Assign laptop with XAMPP fixed IP address
Enable ports (80 & 443)
Set in httpd.conf that he listens to everyone. (So not 127.0.0.1)

Si

You have to make sure that the network is set up correctly. Usually this should be the case. So everyone in the same IP network and router / firewall leaves internal connections unfiltered.

I suspect that the firewall on the laptop itself does not allow access to port 80 (or on which the server is running).

Wi

Thanks for the quick reply.
1. Have now assigned a fixed IP4 to the laptop.
2. I have released the ports for my laptop.
3. Could you please explain that to me a little more?

pl

In the config from the web server (httpd.conf)

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
lists 80

There can be no IP. E.g.

listen 127.0.0.1:80

Wi

So I have the line

listen 127.0.0.1

deleted, unfortunately it still doesn't work.

pl

Do not delete, only on lists 80