F5F Stay Refreshed Power Users Networks 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.

Configure a fixed IP for your Minecraft server, yet it keeps adjusting itself.

X
xXRAXERXx
Posting Freak
817
02-16-2020, 06:15 PM
#1
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.
X
xXRAXERXx
02-16-2020, 06:15 PM #1

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.

S
Stefan_Wdf
Junior Member
30
02-24-2020, 01:49 AM
#2
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.
S
Stefan_Wdf
02-24-2020, 01:49 AM #2

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.

V
Vityusha
Junior Member
21
03-08-2020, 06:55 PM
#3
No, I did not reserve the IP for that computer in the router's DHCP pool.
V
Vityusha
03-08-2020, 06:55 PM #3

No, I did not reserve the IP for that computer in the router's DHCP pool.

C
clausphilip
Member
178
03-09-2020, 12:31 AM
#4
I haven't allocated the IP in the DHCP pool, this is my first attempt at this, I'll try to figure it out.
C
clausphilip
03-09-2020, 12:31 AM #4

I haven't allocated the IP in the DHCP pool, this is my first attempt at this, I'll try to figure it out.

L
LaniBooster
Senior Member
344
03-09-2020, 01:33 PM
#5
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.
L
LaniBooster
03-09-2020, 01:33 PM #5

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.

J
Juan2610
Posting Freak
875
03-23-2020, 08:10 PM
#6
Let me know if you'd like me to help with anything else.
J
Juan2610
03-23-2020, 08:10 PM #6

Let me know if you'd like me to help with anything else.