P
Postiz2mo ago
Support

Ticket: Localhost Port 5000 Access Issue

@bitevy Just created a ticket
Question: Localhost installation. Cannot access on port 5000.
Attempted: Changed docker-compose env variable to MAIN_URL: "http://localhost:5000" FRONTEND_URL: "http://localhost:4200" NEXT_PUBLIC_BACKEND_URL: "http://localhost:3000/api"
Working On: Localhost installation
Using Postiz On: Docker-compose
Take it from here @Postiz
7 Replies
bitevy
bitevy2mo ago
Ok I changes the env to MAIN_URL: "http://localhost:5000" FRONTEND_URL: "http://localhost:5000" NEXT_PUBLIC_BACKEND_URL: "http://localhost:5000/api" But I am getting this error
Access to localhost was denied
You don't have authorization to view this page.
HTTP ERROR 403
Access to localhost was denied
You don't have authorization to view this page.
HTTP ERROR 403
m4rk
m4rk2mo ago
HowTo Self Host Postiz on Ubuntu (on Proxmox VE)
This blog is about security and computing related topics with occassional hobby activities thrown in.
Drew
Drew2mo ago
I’m having a similar issue. I changed to localhost:5000 and I get a “TypeError:NetworkError” the Alan Bonnici writeup… They lost me at QEMU. I have to set up a vm and virtualize an environment to demo this?
bitevy
bitevy2mo ago
I realized port 5000 is blocked by some other service. I got it working by changing the ports

MAIN_URL: "http://localhost:8080" # Base URL for Postiz
FRONTEND_URL: "http://localhost:8080" # URL for the frontend
NEXT_PUBLIC_BACKEND_URL: "http://localhost:8080/api" # Backend API URL

MAIN_URL: "http://localhost:8080" # Base URL for Postiz
FRONTEND_URL: "http://localhost:8080" # URL for the frontend
NEXT_PUBLIC_BACKEND_URL: "http://localhost:8080/api" # Backend API URL
and Ports to
ports:
- 8080:5000
ports:
- 8080:5000
I agree with the blog article it's confusing for a simple local machine setup.
m4rk
m4rk2mo ago
You don’t need to create a virtual machine for this to work ( although I’ll recommend it ) If you don’t need a machine just follow instructions starting at the docker install It’s basically copy and paste
frederikvlk
frederikvlk4w ago
Ran into this issue today on MacOS. Port 5000 is used by default for Airplay receiver. If you really want to bind to port 5000 on the host machine, you can turn off Airplay receiver via System Settings. Or use an alternative port as proposed above.
Brotherperson
Brotherperson4w ago
@bitevy please close the ticker using this

Did you find this page helpful?