Wireguard config on mikrotik when endpoint is dynamic ip

I need guide.

how can I configure my WireGuard connection on my Mikrotik router and on the client device when my router is connected to Starlink—a dynamic IP that changes?

Several attempts aren't connecting due to dynamic endpoints.

Starlink uses Carrier Grade NAT. That means you have no control over which public IP they choose to route your traffic out of.

The way to work around this is to run a device externally (in somewhere like AWS or Azure), create an outbound connection from your house to that location, and then setup inbound access from your endpoint to the external device, this allowing a path back to your home.

If you using a ARM/ARM64/TILE architecture devices you can use the BTH(Back to home).

Yes - works here with my Starlink kit

As noted, BTH (arm/tile) is the way to go. You will be able to connect to the router and/or LAN from your primary device ( the first USER/client is typically your smartphone ). Then you can, if it works for you, add more users via the MANAGE shares on the smartphone OR add them manually like other peers using IP cloud etc. Give it a try and do ask for help if you run into any issues.

Basically for the dynamic ip you can use any DDNS service (including the Mikrotik’s own) and the DNS can be entered into endpoint field.

If your are not dealing with CGNAT.