Assign Server static IP
I recently purchased a block of static IP’s from my ISP for the purpose of having my local mc server utilize one. Anyone have a guide on how to do this for Ubuntu 20.04? Or is this all handled in the router?
32 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by otaroko#0
Well
That's a question and a half.
Do you have a network diagram?
Like something I could just draw up real quick?
Website draw.io can be helpful there too.
I think what I'm trying to ask is "how" is your ISP delivering these IPs to you?
Oh, I asked and paid for a block, and the tech gave me the gateway plus start and end addresses
Right yes, I meant physically
:FrogeBIGEYES:
Uhhh what? Guess I’m confused then?
I wasn’t aware there was anything physical?
Well the internet has to get to your house somehow
:FrogeBIGEYES:
What equipment did the ISP provide
Oh, well I have the router and fiber router already
I say fiber router, but I suppose its the fiber modem
I found this, and it seems relevant: https://forums.att.com/conversations/att-internet-features/how-do-i-setup-an-att-internet-static-ip/5defee02bad5f2f606ea4054
AT&T Community Forums
How do I setup an AT&T Internet Static IP? | AT&T Community Forums
AT&T Static IPs are available as a bolt-on; priced at a premium on top of the price of AT&T Internet service.
A static IP address is an IP Address associated with your account that never ch...
you know NAT exists right?
an entire block for a single minecraft server sounds kinda wasteful
I BELIEVE that is how I have it set up currently. The server has a reserved IP in the DHCP on the router. That reserved IP has 25565 forwarded. And I give my public facing IP to friends that want to access the server. Is this essentially what youre describing?
are you able to hook up your mc server to your fiber router and not your other router
you'll need to portforward twice with ur current setup
no, i believe thats just a module that does something with the fiber
well, not too sure exactly how u have it setup,
but realistically
portforward ur reserved ip of the server on your router, then just give ur friends ur public static ip
but looking at ur diagram you might need to portforward twice
but try and find out 🙂
yeah I believe what I called a fiber router is really just something you need for having a fiber installation tbh. Dont think there is any configuration that can be done.
ur prob thinking of the ONT
yup
you might need to put your router in bridge mode... but i think just trying stuff out is the best bet
I think I understand now, input the public subnet info with the addresses I was given earlier. Then assign one of those address to the server via the router configuration. And that will be the new public facing IP of the server I hand out
I don't have a good guide on how to do "exactly" what you're asking for, safely.
Realistically, this is the correct answer. Doing it the way you're asking for is quite frankly wasteful and more complicated than it is "worth". DNS + SRV records are better, easier, AND cheaper.
Are we talking about setting up a NAT server? Or adjusting configurations in the router? Googling this isn’t helping I’m afraid.
Ah ok, I did some more digging into the DNS+SRV record thing. Essentially pay for or sign up for a DynDNS service like noIP. This eliminates the need for paying my ISP for a public static IP address. As far as SRV record is concerned, I am still a bit fuzzy. I read WHAT the SRV record is, but not how to get it or WHY I need it. Thank you all for the help so far, I really appreciate it.
Never mind, I guess the SRV record gets updated when you sign up with a DNS service :catclap:
Would appreciate some feedback if my thinking is correct in this regard
I'll draw you an example network map when I get to work later if nothing else is going on
Are these supposed to be four individual servers or four servers connected with a proxy?
I think he was showing how other devices (like his phone and personal pc) are connected the same way as his server
OH fuck I misread entirely
Yeah, everything else has a dynamic IP in the internal private pool, the server has a reserved IP in that internal private pool. I’m looking into a DDNS right now and canceled the public static pool with my ISP. I’m not against paying for DDNS services so anyone with suggestions on that front I’m all ears.
I'd get one static ip from your ISP. Some only give in blocks of five, which is wasteful but happens.
Your router will have the static IP.
You port forward 25565 from the router to your server internal IP.
There you go, it's that easy.
I thought you were asking for multiple servers each to have their own static public IP. That's where it gets confusing
Yeah I can only get a pool. But I’ll look into dyndns as it seems that will solve the issue of changing ip’s
!answered
post closed!
The post/thread has been closed!
Requested by otaroko#0