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
Admincraft Meta
Admincraft Meta17mo ago
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
Discount Milk
Discount Milk17mo ago
Well That's a question and a half. Do you have a network diagram?
otaroko
otarokoOP17mo ago
Like something I could just draw up real quick?
Discount Milk
Discount Milk17mo ago
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?
otaroko
otarokoOP17mo ago
Oh, I asked and paid for a block, and the tech gave me the gateway plus start and end addresses
Discount Milk
Discount Milk17mo ago
Right yes, I meant physically :FrogeBIGEYES:
otaroko
otarokoOP17mo ago
Uhhh what? Guess I’m confused then? I wasn’t aware there was anything physical?
Discount Milk
Discount Milk17mo ago
Well the internet has to get to your house somehow :FrogeBIGEYES: What equipment did the ISP provide
otaroko
otarokoOP17mo ago
Oh, well I have the router and fiber router already
otaroko
otarokoOP17mo ago
No description
otaroko
otarokoOP17mo ago
I say fiber router, but I suppose its the fiber modem
otaroko
otarokoOP17mo ago
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...
dan
dan17mo ago
you know NAT exists right? an entire block for a single minecraft server sounds kinda wasteful
otaroko
otarokoOP17mo ago
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?
QarthO
QarthO17mo ago
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
otaroko
otarokoOP17mo ago
no, i believe thats just a module that does something with the fiber
QarthO
QarthO17mo ago
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 🙂
otaroko
otarokoOP17mo ago
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.
QarthO
QarthO17mo ago
No description
QarthO
QarthO17mo ago
ur prob thinking of the ONT
otaroko
otarokoOP17mo ago
yup
QarthO
QarthO17mo ago
you might need to put your router in bridge mode... but i think just trying stuff out is the best bet
otaroko
otarokoOP17mo ago
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
Discount Milk
Discount Milk17mo ago
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.
otaroko
otarokoOP17mo ago
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
Discount Milk
Discount Milk17mo ago
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?
QarthO
QarthO17mo ago
I think he was showing how other devices (like his phone and personal pc) are connected the same way as his server
Discount Milk
Discount Milk17mo ago
OH fuck I misread entirely
otaroko
otarokoOP17mo ago
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.
Discount Milk
Discount Milk17mo ago
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
otaroko
otarokoOP17mo ago
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
Admincraft Meta
Admincraft Meta17mo ago
post closed!
The post/thread has been closed!
Requested by otaroko#0

Did you find this page helpful?