You specify the peer address as 0.0.0.0/0 and set the option ‘Generate policy’ in the peer setup. This will allow connections from different IP addresses. At least one end must have a fixed address.
10 years ago this choice didn’t exist The port-override choice only makes sense when the peer sends incorrect traffic selectors in the proposal; with correct peer implementation, port-strict works fine.