HI - I’m using version 5 (not sure what release within 5 since I can’t access it currently).
I swapped routers and now have a Unifi Dream Machine 7 - now when I try to access my invoiceninja installation I am seeing the login for the router instead of invoiceninja. I’m thinking the router and invoiceninja are fighting over port 443 or something I don’t quite understand. What is my best way change ports on a self hosted v5 installation running on a Synology behind a Unifi router?
Thanks in advance,
Adam
Hi,
Here’s what ChatGPT suggests in case it’s helpful:
You’re likely right that the router is intercepting traffic on port 443. This is common when routers (like the UniFi Dream Machine) expose their own management interfaces on standard ports like 443 or 80.
Here’s what’s probably happening:
- You previously forwarded port 443 on your router to your Synology (where Invoice Ninja is hosted).
- After switching to the UniFi Dream Machine, port 443 is now being used by the router’s own management UI, which is why you’re seeing that instead of Invoice Ninja.
Solutions to Resolve It
Option 1: Change the UniFi Router’s Management Port (Recommended)
- Log into the UniFi Controller UI (usually via
https://unifi.ui.com
or https://<your-router-ip>
).
- Go to Settings > System > Device Settings (or similar).
- Change the management access port from
443
to something like 8443
.
- Save and reboot the router.
Once you free up port 443 on the router, your old port forwarding rule should resume working.
Option 2: Change the External Port (Less ideal, but works)
If you can’t or don’t want to change the UniFi port:
-
In the UniFi router settings, set up port forwarding:
- External port:
8443
(or another unused port)
- Internal IP: your Synology’s local IP
- Internal port:
443
(if Synology/Invoice Ninja is listening on 443)
-
Access your Invoice Ninja via https://yourdomain.com:8443
(or your external IP with :8443
).
Option 3: Change Invoice Ninja’s Internal Port (if needed)
If Invoice Ninja is using a reverse proxy like Nginx or Apache, you can:
Then reconfigure the Unifi router to forward external port 8443 to internal port 8443.
Final Notes:
- SSL Certificates: If using Let’s Encrypt, you may need to adjust your cert bot or reverse proxy to reflect port changes.
- Firewall: Make sure your Synology’s firewall or Docker isn’t blocking the new port.
Thank you - much appreciated!