If you have a decent internet connection at home, and a spare computer (eg a raspberrypi or something), and you don't mind everyone knowing your home IP address, it could cost as little as $0.
It's also possible to rent a virtual server for the purpose for as little as $5/month, but you'd probably want to spend a few times that to get one with better-than-minimum specs from a reliable/reputable operator.
The biggest expense is the time it takes to maintain it. Becoming an infrastructure provider for other people can become quite a hassle, especially if they come to rely on it and are seriously inconvenienced when you have downtime.