Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

How to reach controller from outside network #29

Closed mbassan closed 7 years ago

mbassan commented 7 years ago

Hey man, it's me again.

This is not related to your repo directly - I just can't find the answer anywhere else:

What IP do I call to reach the controller from outside the LAN? For example, if my hotspot script is on Amazon AWS and the controller is behind an Edge Router, how would I determine the right IP to call to authorize the device on the controller?

You're my only hope!

malle-pietje commented 7 years ago

Use the public IP address of the ER. If the IP address is dynamic I suggest you set up some dynamic dns service such as http://dyn.com/dns/, then refer to public domain name.

malle-pietje commented 7 years ago

This does assume that port forwarding rules are in place to redirect external requests to port 8443 to the internal IP address of the controller.

mbassan commented 7 years ago

Excellent, thanks man! Was having connection problems in many locations and I wanted to make sure that the controller would be accessible at all in theory - and that I wasn't trying something impossible.

malle-pietje commented 7 years ago

You're welcome.