How do you play raft with friends?
Make sure the friends can join option is enabled by entering the game and having one player open a world. One person has to choose between "New Worlds" or "Load World" and if they choose the "Friends can join" option, you have to share it with the friend.