Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
December 03, 2024 - @740.19 (what is this?)
Forum activity rating: Two Stars Posts: 22/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :ha: :pc: Hello Melonland! :pc: :happy:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Self-hosted Raspberry Pi Web Server


« previous next »
Pages: [1] Print
Author Topic: Self-hosted Raspberry Pi Web Server  (Read 247 times)
strongbad
Casual Poster ⚓︎
*


⛺︎ My Room

View Profile WWW

Joined 2023!
« on: November 17, 2024 @242.82 »

Does anyone here have experience hosting their own web server at home? I'm currently building a chat room, a guestbook, and a multiplayer three.js game, all of which are going to need backend servers. I was thinking about learning how to make my own web server on my home internet because it seems like a fun project, but I have read there are security risks involved. Is it a good idea to host a web server on your home internet, or is it more trouble than it's worth? Would a raspberry pi be capable of handling the task? What are your solutions for this type of problem?
Logged

PossiblyAxolotl
Casual Poster ⚓︎
*


I make things :) they/them

⛺︎ My Room
iMood: PossiblyAxolotl
Itch.io: My Games

View Profile WWW

Possibly An Axolotl. Perhaps. Maybe. It Is A Mystery.Joined 2024!
« Reply #1 on: November 17, 2024 @247.29 »

Note that I am NOT an expert, but I BELIEVE that if you're using something like nginx with the proper security headers and you route it to your domain through Cloudflare (or another service I don't know about) it should all be good since Cloudflare works as DDOS protection and masks your IP with one of their own, but it also depends on how you feel about Cloudflare. Also at least in my case for guestbook stuff I actually just use a Google sheet with an app script that works perfectly fine without a dedicated server too, though it's not perfect (little bit slow) and definitely wouldn't work for a real-time chat. (I wrote a little about it a while ago here: https://blog.possiblyaxolotl.com/2024/08/02/not-paying#guestbooks)
Logged

Schmoovin'
Dreamwings
Jr. Member ⚓︎
**


Professional-grade yapper and late to the party

⛺︎ My Room

View Profile WWW

Sealiously Cool User AwardJoined 2024!
« Reply #2 on: November 17, 2024 @349.69 »

Come to the right place (mostly) because I actually used to host my website in my house on my home internet and on a Raspberry Pi 4 :4u:  (it still is on my home internet but now it's on an old desktop so I can also host a few other things at once and basically just have a beefier workhorse machine). So I know a thing or two about doing most of those things. Keyword, most, not that much about security or JS or getting the multiplayer three.js game to work so heh you're going to have to figure out those parts or other smarter people can explain all that (I just do the basics, use stable stuff, keep that stable stuff updated when I remember, and hope for the best because I'm not like, important enough to have military grade encryption or whatever else).
First of all, most importantly, if you haven't check this already you wanna make sure that your home internet gives you a stable ip. Mine does luckily, specifically with the purpose of hosting things if you want to. If its dynamic (Ie changes out every certain amount of time), then there are ways of getting around it with services like no-ip but I don't know anything about that. If it's stable, usual drill of hooking it up, point domain to that IP address, portforward, etc. That's the MAIN roadblock you're going to run into when trying to host something out of your house. Also worth to note if the IP is dynamic, that means that they're actively trying to prevent people from doing something like hosting something out of their house and probably have other checks to see to it that you aren't doing that. So if they see the bandwidth of your server and it indicates something is going on, they might hit you up and say "Hey you can't do that" depending on how mean they are about that sort of thing. Very very rare, I've never really seen anything like that but for very extreme cases which is mostly when they get noticed, but it's worth noting regardless.
Is it a good idea to host a web server on your home internet, or is it more trouble than it's worth?
Yes. Not only is it cheaper, it is is also a LOT easier to manage a machine that is literally in your house, sometimes even right next to you. From myself doing it, it's a lot easier to get it online than you would think (usually as quick as a sudo apt get install after you connect it to the internet). You know absolutely everything that is going on with the machine at any given time. No unexpected downtime, no wondering about where the data on your VPS is being stored, it's all right there and cozy. Plus, a major feeling of independence. :cheerR:
(But it being cheaper is the best part to be honest)
Would a raspberry pi be capable of handling the task?
Depends on the pi and what you're doing. If it's just the webserver, PHP, more complex JS frameworks, basic small things like that, easy for a Raspberry Pi 3 and up and my Pi 4 wouldn't even blink (possibly a 2 as well but I think that might have a couple of issues at that point) but a Raspberry Pi Pico might be getting pushed to it's limits. If you're going to be trying to be running some of those more complicated three.js processes it probably depends on how many there are and how much RAM there is (and also what your Raspberry Pi is because a Raspberry Pi 5 would be able to take it no problem I think but 4 and under might start to hitch a little).
That being said though, take that with a grain of salt. Pi's are pretty hardy. I once hosted an MC server for a discord server on my Pi 4 and while it would chug with more than two people on at a time, it took it like a champ and didn't explode (though it did get pretty hot even with a fan). They can do a bit more than you'd expect at times.
Logged

<- Feed this guy please, they're so humgry
If I sound angry I'm probably not unless I say so. I'm just really really blunt. :dog:
My site is down for now please ignore the link lol
strongbad
Casual Poster ⚓︎
*


⛺︎ My Room

View Profile WWW

Joined 2023!
« Reply #3 on: November 17, 2024 @792.67 »

Thanks for the Google Sheet tip! Your guestbook looks awesome.
Logged

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

MelonLand Minecraft Server

Started by MelooonBoard ♖ ∙ Video Games

Replies: 79
Views: 16447
Last post July 05, 2024 @569.43
by VelvetSoul
Thinking about doing server sided development, what tools should I use?

Started by Icey!Board ☔︎ ∙ I need Help!

Replies: 7
Views: 993
Last post April 06, 2023 @104.77
by Memory
Help: how do you reposition where a webamp player loads on a page?

Started by MemoryBoard ☔︎ ∙ I need Help!

Replies: 6
Views: 745
Last post August 17, 2023 @10.59
by Memory

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi