if AP and controller are in same L2 subnet then if AP receive IP from same L2 subnet then AP will discover the controller auto.
If AP and controller are in different network then you can force the AP to discover the controller by running CLI commands using SSH/Putty
set director ip
example : set director ip 192.168.1.10