LanternPowered / Terre

A proxy server for Terraria which adds support for cross-platform, multi-world and more.
MIT License
18 stars 3 forks source link

Do you think it would be possible to make this broadcast as lan? #20

Closed woliver99 closed 7 months ago

woliver99 commented 7 months ago

I just recently found out you can join mobile terraria servers from console on a lan network because they run the same version as terraria. If you made it so you could join this through lan by broadcasting the server on the local network it would make it possible to have crossplay to consoles.

I've already tried to achieve this but i dont really understand how terraria broadcasts its servers locally and i tried to figure out with wireshark but it just wouldn't show up on the lan list for even the mobile phone

If it's not possible it's fine but it would be cool to have crossplay with console terraria.

Cybermaxke commented 7 months ago

Hi, there was already support for broadcasting to LAN, but it was no longer up to date with the latest terraria versions. I updated it now and also changed it a bit to send to all active network adapters with broadcast addresses. It is active by default and I tested it with the mobile client 1.4.4.9. If you're using windows, you'll need to add firewall exceptions (or disable for testing) or may not be able to join even though it's popping up in the server browser.

Fixed in https://github.com/LanternPowered/Terre/commit/419f442478c6b71dd00bff27bf276c40e4111232

woliver99 commented 7 months ago

Holy shit it fucking worked, I played terraria on my pc and on my xbox at the same time. Thank you so much.