this post was submitted on 03 Jul 2023
4 points (100.0% liked)

Selfhosted

573 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Resources:

> Any issues on the community? Report it using the report flag.

> Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi everyone! So I installed docker the other day and I'm currently getting used to the terminal. I had a few questions about self-hosting web apps that would determine what apps I start using.

  1. If I hypothetically moved, would the change in IP address affect anything?
  2. Can other people on my internet access my webapps?
  3. Would a VPS solve any issues caused by question 1/2? Or is there a different type of software that would help?
  4. When I install an app and they both require the same localhost, is there a list of numbers that I can use as an alternative? For example, instead of 8080 could I use a hypothetical number like 1234?

Thank you very much. Sorry if these questions seem rather obvious, I'm just very new to self-hosting and I don't want to lose any data in the future. ๐Ÿ˜…

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Witch 1 points 1 year ago (1 children)

Thank you very much for the detailed reply! So to clarify, the IP address changes but the app itself isn't affected? For example, I move to an apartment with an IP address that is different, but I can still access everything in let's say...a self hosted web app that takes notes? Would that be correct?

Everything else seems pretty understandable, much appreciated.

[โ€“] Swimmerman96 1 points 1 year ago

Oh that's what you meant by moving, OK! I'd you move to a new apartment and use a new router, the app on the same machine on the new LAN/WAN will definitely have a new IP. If you keep your router with you during the move and keep the app on the same machine, your app could need a new IP or could keep the old one, hard to say. If you rent a VPS, it'll be in affected as it'll have the static IP the data center assigned it no matter what.

If you need to find a LAN/WAN IP and port, I recommend getting comfortable with network and port scanners. On Android, I use Port Authority, it just takes one tap to start a scan and get the devices on the network, select the device and two taps to scan ports for that device. On Linux I'll use netcat aka nc but I'm still at the point with that where I have to look that up each time.
Unfortunately for other platforms, I don't have any recommendations to that end, but some googling might reveal a good tool for you.
Once you have a good tool, I find it easiest to scan the network, power up the machine with the app, and scan again to see what was added. But if you're comfortable with the vendor info that can be supplied with things like Port Authority you may not need to do that.