Redirect from port 80 to 41135

Hi.
I am trying to make a Terraria server.
I set up a server on server.pro, but the port keeps changing every time i start it.
Is there any way to solve this problem?

Make sure your server port does not change.

Also, port 41135 would not be supported by Cloudflare anyhow and you could use it only in an unproxied context.

But can i use a SRV record?

We are not talking about a browser context, right? Then it might depend on your client whether it supports SRV records, but it would still have to be unproxied.

Thanks for the valuable information.