You can either pay for a server with realms or an online service (I would search around for a bit to see which host best suits your needs), or you can all sign.
This tutorial takes you through the steps of setting up your own Java Edition server using the default server software that Mojang Studios distributes free.