Hey! I’m trying to setup my forum in WSL2, and when I put in my forum’s url it says this:
I don’t know why this is happening, I got my IP in the terminal, set it in my DNS here:
A user, archie123, is trying to set up a Discourse forum in WSL2 and encounters an IPv4 error. hawm suggests checking if the WSL2 service is accessible from the internet and notes potential issues with privileged ports on Windows. archie123 confirms the service is running but can’t access it externally. hawm identifies the IP address as an automatic private one, indicating a wrong address was used. itsbhanusharma advises against hosting Discourse on a home PC due to reliability issues like lack of 24/7 uptime, dynamic IPs, and firewall problems. They recommend using a VPS, suggesting DigitalOcean or Hetzner, and dismiss Heroku due to insufficient RAM and Docker compatibility issues. archie123 considers IBM Cloud, and itsbhanusharma approves it if it has at least 1 GB of RAM.
Disable the Cloudflare proxy may make it work when install.
I unproxied the whole thing but still the same errors.
My bad. Now i notice that your using the WSL2 to install Discourse, before that please make sure your WSL2 exported service can access from internet.
For example, run python3 -m http.server 8080 or other services, can you access it from your internet address?
Additionaly, WSL2 seems not well on Privileged Ports with Windows host.
I just put that exactly into terminal, and its saying ‘Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) …’
and it has been for 5 minutes now.
Open your browser enter http://your-internet-ip:8080, could you access any content?
It may the firewall block yout connection, i can’t help.
Do you know how I can disable the firewall?
Wait, the ip 169.254.*.* is an Automatic Private IP address right? You pick an wrong address.
What IP adress am I looking for? There was one next to it, and loads below.
What are you trying to do anyway? hosting discourse on your own system or Just want to set up a testing instance?
I’m trying to self host using cloudflare and sendgrid
That’s a nada if you’re trying to host your discourse in WSL it won’t work. Here are the reasons why:
I suggest get a cheap VPS from DigitalOcean or Hetzner and set it up there.
Should I use something like Putty?
You need a server before anything else. Do you have a server?
No. Do you mean like a digital oceon type?
Yes, I mean DigitalOcean type Server. You just can not host a public facing application on your Home PC without a boatload of problems.
Okay. Is there any reliable server applications/ hosts?
DigitalOcean is very reliable. If You’re cost conscious, You can consider Hetzner.
Would heroku work? The free edition that I’m planning on using has 512 mega bytes of ram.