Tcp tunnel from unraid to win10 (terraria)

Hey, I want to tunnel the tcp port 7779 (cuz testing) to my win10 pc running terraria. It’s working with minecraft, but with terraria it won’t work. everytime it gets stuck on “Found Server” and in cmd I get:
ERR failed to connect to origin error="websocket: bad handshake" originURL=
I run a .bat file with the following code: cloudflared access tcp --hostname --url localhost:7779.
In terrara I use localhost for the server name and 7779 for the port.