Your options

A dedicated server. Terraria comes with one, but the world is only reachable while that computer is on, and someone has to keep it running and updated.

Passing the file around. Copy the world from Documents\My Games\Terraria\Worlds on Windows or ~/Library/Application Support/Terraria/Worlds on a Mac and send it to the next player. It works until two people play different copies.

Sleepingbag. It shares the world file between your group and keeps track of the newest version, so anyone can host it with Host & Play, or play it in Single Player.

Sharing a world with Sleepingbag

  1. Keep the world on your computer, not in Steam Cloud. In Terraria’s world list, click its cloud icon to move it.
  2. Share it from Sleepingbag on the computer that has the newest copy.
  3. Friends join your group with its invite code. The world appears for them, ready to play.

Sleepingbag uploads a new version at most every 30 minutes while you play, and once more after you quit. Your characters never leave your computer. If a friend saved the world in a newer Terraria, Sleepingbag asks you to update before you play. Journey characters only play Journey worlds, and Sleepingbag points that out first. More on the Terraria page.