What service are you using that's 4$/month? I've used the free tier of Render on the past which I enjoyed but the lowest paid plan is 20$/month.
https://lowendtalk.com/discussion/199617/hostbrr-bf-storage-...
The trick (and somewhat the drawback in many's eyes) is to rent a VPS (or dedicated/bare metal) instead of a "App hosting service" (what Render is). You'd need to know some basics about infrastructure and networking, but not anything too advanced and that's stuff will be useful regardless too, so not too easy to rationalize away :)