nat ipv4 to public ip

I want to self host a server with minimal cost so buying public ip from my internet provider isn't an option. I am searching for free way to get my server out of my isp network possibely with cloudflare services and without vpn and mayby vps as i want for it to be accessible without others having to connect to vpn. I alse plan on buying domain on cloudflare for that server.
8 Replies
Chaika
Chaika2mo ago
for http/https cloudflare tunnels work great: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-remote-tunnel/. You need to install software on each client who wants to connect for non-http protocols w/ cf tunnels without Spectrum Enterprise and Load Balancers For minecraft there's https://playit.gg/ For more generic stuff there's options like ngrok https://ngrok.com/docs/tcp/ for tunneling ports out with some restrictions/paid features, or buying a VPS/Server and using something like wireguard to proxy traffic, eitherway outside of CF's scope
adex345
adex345OP2mo ago
Thank you. I will check that. Does cloudflared tunnels need wrap on client-side? It would really help if cloudflare had more direct instructions.
Chaika
Chaika2mo ago
If not http/HTTPS, yes (or for simple single arbitrary TCP port tunneling you can use public hostnames and cloudflared on client but still requires client software), that's why I listed all different protocols/types
adex345
adex345OP2mo ago
So I need to buy a domain, add public hostname to tunnel and then do i need to set up private network or anything else and will all udp tcp ports work with wrap?
Chaika
Chaika2mo ago
That wouldn't do what you were asking for "nat ipv4 to public ip", even setting up warp w/ private networking would only work to allow people to connect who install warp and login to your org. That's why I listed those other options for non-http
adex345
adex345OP2mo ago
So cloudflare wouldn't work for non-http? About login to my org part, would this work and if yes, will it be as simple as installing wrap and login ing in for end users?
Chaika
Chaika2mo ago
it wouldn't work for non-http except if you can get them to login and constantly stay connected to WARP in which case they'd be able to send traffic/etc to the Private IP up to your users limit (50 on free)
adex345
adex345OP2mo ago
I really wanted to have my or free non changing domain name or stable public ip so I could host server with website and game so i can't use playit.gg and nrock.com. As for VPS I don't like idea of routing my traffic to it. Wrap seems like best option for now as 50 users should be enough for me now.
Want results from more Discord servers?
Add your server