Could anyone familiar with WireGuard explain the following lines from the man page:
--endpoint=ip:port Set the peer's endpoint address outside the tunnel. This is optional for a VPN server if the wgconfig interface is configured to listen on a port number. As far as I understand, the client specifies the endpoint as the public IP address of the server, so that the client can connect to it. Under what circumstances would it be useful for the server to specify the client endpoint in its peer configuration? It is supposed to dynamically determine the IP address in case of mobile clients. Which I guess would preclude this from happening if a static endpoint is specified? Are there any use cases for this option on the server side? Thanks.
