Behold, for Java there a server hosting websites that allow a free server for three people.
Unfortunately, because of the network expenses, most of the time for more than three players it is like $5 to $10 a month. But for many players, like more than 100, it could be more expensive.
For bedrock there is no free option, sadly