Closed Fairydx closed 6 months ago
Please use port 443 per the instructions unless you are handling this through NAT.
I have this configured on my Port Forward options:
I can access the unify panel using the 8443 port.
Okay, but the "Couldn't connect to server" suggested something is wrong at the TCP level. We also use the API client in Laravel (up to version 10) stacks and don't see such errors. Here's an entry from one of our apps:
Wait, did you not create a specific firewall rule to allow access to port 443 (local) from the WAN interface? In that case, please follow these instructions: https://artofwifi.net/blog/how-to-access-the-unifi-controller-by-wan-ip-or-hostname-on-a-udm-pro
I have that enabled.
Should I need to create a specific firewall rule for the 8443 port?
I'm seeing now that I can't even disable the Remote Direct Access feature.
However I'm using a WAN IP address on the UDM:
Something is not set up correctly with your firewall rules. I can’t reproduce this here.
I have that enabled.
Should I need to create a specific firewall rule for the 8443 port?
No, simply create a firewall based on the second method described in that blog post. You might consider creating a backup and resetting the unit to factory defaults…
I'm having the same problem with all the versions of unifi management on the web, I have a server that has the Unifi Management installed to connect to old ubiquiti devices, and I have the same error here.. I believe that this is not a device problem, because if I try to connect via API in another device, it works fine.
Do you know what can be blocking the connection?
I'm afraid this issue is unrelated to the API client package. I recommend opening a topic on the Ubiquiti community forums instead. It helps if you can validate the issues by simply trying to connect to the web interface of your UniFi OS console from the "outside".
This might be related to the "Direct Remote Connection" feature which is greyed out but Ubiquiti would need to confirm that.
I will close this issue for now, please re-open it again in case it becomes clear the issue is related to the API client.
This is not related with a device itself, it's related with the connection between my server and the ubiquiti devices.
It's not only one device it's all of them
And one of them it's the Unifi Management OS that has a lot of sites with other gateways
I'm afraid I cannot reproduce this at all.
I moved the captive portal to another server, and this problem goes away. If you know any way to understand or debug what is going on with the server, please share it.
There are so many things that can affect the connectivity... One thing to check is whether the server is running Selinux. This can block outgoing connections.
Good afternoon,
I'm experiencing an error after upgrading my UDM to version v3.2.7. When attempting to log in to the API, I receive the following error message. I have already updated the API Client to the latest version from this repository.
Please find the error below.
Can you help me with this?
Best regards, Fairydx