Tbot1001
Posts: 1
Joined: Tue Aug 14, 2018 2:27 pm

Raspberry Pi Apache2

Tue Aug 14, 2018 2:32 pm

Hello, I am following this guide:
https://www.raspberrypi.org/documentati ... /apache.md
and I have used http://localhost/ on the pi like it says you can, and it works, but I am not sure of how to connect to it from another computer. Thanks!

knute
Posts: 567
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Raspberry Pi Apache2

Wed Aug 15, 2018 3:57 pm

You can use the server Pi's IP address. If for example your Pi has an IP of 192.168.1.2, on your desktop (on the same network) put 192.168.1.2 in the address line of your browser and it should display your web page. You can try that on your Pi as well.

tpyo kingg
Posts: 809
Joined: Mon Apr 09, 2018 5:26 pm
Location: N. Finland

Re: Raspberry Pi Apache2

Wed Aug 15, 2018 4:07 pm

Some routers will let you assign a permanent IP address inside the LAN so you can always find the machine. Still other routers allow you to even also assign a local name so you can address the RPi by name not just number.

User avatar
WillBoxOwO
Posts: 122
Joined: Wed Jun 27, 2018 10:24 pm

Re: Raspberry Pi Apache2

Wed Aug 15, 2018 5:07 pm

You can get your local Pi's adress with this command (if im not mistaken)

Code: Select all

hostname -I
Access the given adress on another device that is on the same network as your Raspberry Pi.

If you want to be able to access your website outside the network, you can look at port forwarding tutorials for your modem.
I like cats

Return to “Networking and servers”