Configure a fixed IP for your Minecraft server, yet it keeps adjusting itself.
Configure a fixed IP for your Minecraft server, yet it keeps adjusting itself.
Hey there! I’m starting this here for the first time. I considered using a server setup but realized it’s more about network settings than anything else. I’m trying to configure a spare PC as a Minecraft server and a Discord bot. The main challenge is with the server configuration. After setting everything up, the IP changed and the PC lost internet access, causing both the bot and the server to shut down.
During setup, I adjusted the adapter settings—IP at 192.168.0.192, subnet 255.255.255.0, gateway 192.168.0.1, and DNS to Google in manual mode. After running ipconfig /all, the lease start/end lines disappeared and the numbers looked right. I also configured port forwarding on my router for port 25565 using both TCP and UDP, and set firewall rules on my PC for inbound and outbound traffic on that port. Eventually, after some tweaking of the router’s firewall, port 25565 opened and everything worked again.
Fast forward a day, I went home and the server and bot went offline. The PC showed two different IP addresses—192.168.0.242 (preferred) and 192.168.0.192 (duplicate). Switching the router’s port forward rule to use 192.168.0.242 resolved the issue and restored the server and bot.
My question is: how can I avoid this in the future? My current setup includes: CODA-4589-RES gateway, Ryzen 5 5600X, MSI MPG B550 Gaming, Windows 10. Let me know if you need more details! I’ll update with screenshots if it happens again, though I didn’t this time.
You're likely not using an external IP outside your router's DHCP pool. Instead, configure a static DHCP lease for your server within your router, ensuring the router consistently assigns the same IP address. This method relies on your server's MAC address and its network interface card.
I haven't allocated the IP in the DHCP pool, this is my first attempt at this, I'll try to figure it out.
I checked the router settings and set a DHCP reservation for the PC at 192.168.0.242. I’ll let you know if it doesn’t work. My router uses a range from 192.168.0.10 to 192.168.0.200, so it’s possible your PC got assigned an address outside that pool.