Art-of-WiFi / UniFi-API-client

A PHP API client class to interact with Ubiquiti's UniFi Controller API
MIT License
1.09k stars 217 forks source link

Controller url #190

Closed zaiterali closed 1 year ago

zaiterali commented 1 year ago

Hello, Im using cloud key gen 2 plus. And my login page files hosted on a web server.

In the config file what should i use for $controllerurl ?

Using both the local controller ip and the public ip not working.

I think its the forward proccess i miss. Anyone can assist me to do this ?

Thank you.

malle-pietje commented 1 year ago

This question is related to pretty basic networking and doesn't belong here I'm afraid. The information you need can all be found in the README file.

malle-pietje commented 1 year ago

One small hint: https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L56

zaiterali commented 1 year ago

Btw. Im running this on a local controller for 6 months and all was working fine. I asked this because when moving the files to my webserver its not working anymore. Anyway thank you

On Fri, 31 Mar 2023 at 10:07 AM malle-pietje @.***> wrote:

One small hint:

https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L56

— Reply to this email directly, view it on GitHub https://github.com/Art-of-WiFi/UniFi-API-client/issues/190#issuecomment-1491672709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVVJP5VDSUGQZ4QSEVMO2ITW62UENANCNFSM6AAAAAAWN5E4MM . You are receiving this because you authored the thread.Message ID: @.***>

--

Ali Zaiter

+961 76 482 291

malle-pietje commented 1 year ago

Exactly why I believe this is caused by networking (port forwarding) or firewall rules. Therefore not an issue that belongs here.