Introduction: Raspberry Pi As Webserver.

This instructable will only briefly show a way to enable webtraffic to your Raspberry Pi.
In the last step you'll find a guide to add the content.

You'll need:
1 Raspberry Pi
1 Router
1 Micro USB cable
1 Ethernet cable
(and of course an Internet connection)

Step 1: Raspberry Pi As Webserver - Connect to Router.

First you need to connect your Raspberry to your router.

Connect ethernet cable to a free Lan-port. (See picture above).

Connect Micro USB to router or if you have different cable, to your power net.

I'm also using a USB-hub and discstorage...

Step 2: Raspberry Pi As Webserver - Configure Router.

To enable access to your Raspberry Pi you need to enable traffic to it.

Steps:
1. Log in to your router.

2. Check current ip.
Under Attached devices check your current ipaddress for your Pi.

3.Lock current ip to your Raspberry Pi.
Under LAN-setup Add an address reservation for your Pi.

4. Configure asDMZ-machine.
Under WAN-setup Enter current ip and enable as Default DMZ Server.

Step 3: Raspberry Pi As Webserver - Setup Webserver.

Now you'll need to add content to your webserver.

Here you can find a guide to setup and add content to your Raspberry Pi webserver:
https://www.instructables.com/id/Install-a-webserver-on-Raspberry-Pi/

If you are looking for a guide to use ssh to talk to your Pi, look here:
https://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

My Raspberry Webserver can found here:
http://213.65.123.101/qr - a QR Business Card generator.

http://213.65.123.101/whoiam/ - all you want to know about what google knows about you.

Here you can find a guide on how you can use your QR business card:
https://www.instructables.com/id/Digital-business-card-in-your-iPhone-smartphone/

Good luck, and may the Pi be with you!

Comments

author
Arduino4Me (author)2015-04-22

Wow, thanks for the help!

author
Port5 (author)2015-03-17

This is to allow a setup with pi and a standard router and be able to create a standalone webserver?

author
antares72 (author)Port52015-03-30

Yes Port5, your pi should be accessible from the internet if you follow the instruction. Did you succeed?

author
script_coded (author)2014-12-19

Första svensken jag sett på Instructables! :D

First sweed I've seen on Instructables! :D

author
antares72 (author)script_coded2014-12-27

Medlem sedan Feb 27, 2009!

Gott Nytt År!

author
script_coded (author)antares722014-12-28

Haha!

Veteran alltså! ;)

Gott nytt år på dig med!

author
Untitled_Dot_V (author)2014-09-04

Yay! it works and stuff,

Can I use this to upload and download files?

author
antares72 (author)Untitled_Dot_V2014-11-06

Sure, it is small, but it is a server. If you only need to upload and dowload files, perhaps you are looking for a NAS ? But a Raspberry Pi is much more fun! ;)

author
emdarcher (author)2012-12-06

I like the simplicity of this instructable compared to others about setting up a server on the raspberry pi. It does not involve Mysql or other stuff i have no idea how to do yet. I am still waiting for my raspberry pi, probably getting one for christmas. Also ablut a raspberry pi laptop, check out this ible' https://www.instructables.com/id/LapPi-A-Raspberry-Pi-Netbook/ 

author
diy_bloke (author)emdarcher2014-03-07

Don't really need MySql for a webserver, but if you want to present anything more than just stationary html pages, MySQL comes in handy.
Should really give it a try :-) It is really not that bad.

author
antares72 (author)diy_bloke2014-03-08

diy_bloke: Your absolutly right, but perhaps PostgreSQL can be a good choice?

author
antares72 (author)emdarcher2012-12-06

Thanks emdarcher! Warms me in this winter times...

Your (tip ?) instructable is a dream of mine, as you saw! RPi as a laptop, can it be cooler?!

Cheers!

author
antares72 (author)2013-12-10

Yes Oakapi10, that is correct. But could you not use a Wi-Fi adapter then?

author
Okapi10 (author)2013-11-17

This will only work with RPI Model B.

author
antares72 (author)2013-05-31
author
antares72 (author)2012-10-19

1 k visits...Thanks folks! But not an awful lot of comments... Is really everything crystal clear?

author
antares72 (author)2012-10-02

@amandaghassaei - Yes indeed! I see that you have done some cool projects with Arduino... Tip for you (and everybody else=) Why not make a laptop pi? Perhaps a bluetooth keyboard and a 7 or 11 inch screen? A dream of mine.

author
amandaghassaei (author)2012-10-01

sweet! I've got to get going with the raspberry pi, so many awesome projects that could be done!

About This Instructable

120,797views

357favorites

License:

More by antares72:See the world as BitsCheck who is at home! Home automation. Surveillance. Big Brother tech. Raspberry PI.Emergency supplies
Add instructable to: