If access points are configured for discovery, they will find the controller. If access points are configured with the wrong ap-group, they will also find the controller, but sit there until you reprovision it to a different group..on the controller. It is when you hardcode the access points with incorrect static ip addresses and incorrect addresses for the controller that you run into this issue.
---Begin Rant-------
The majority of users can avoid this if they DO NOT HARDCODE ACCESS POINTS WITH IP ADDRESSES OR MASTER CONTROLLER IP ADDRESSES.
I run into a number of users that want to hardcode all of the ip addresses for access points and then have to keep a long spreadsheet of their ip addresses. No need: The controller already does this for you! In addition, your DHCP server will have a lease with the name of the ip address. Lastly, if you want to change the underlying network infrastructure to change network numbering, etc, the access point will automatically get the new ip address, etc...find the controller, and then just work! You should only have to provision the access point's NAME and AP-Group. Nothing else is necessary!
---End Rant----