NeuroAgent

How to Fix Forge Server Crash When Specifying IP

Solution for Minecraft Forge server crash when specifying IP in server.properties. Learn the main causes and how to fix the configuration.

Why does my Minecraft Forge server crash when specifying an IP in server.properties?

I downloaded a server for Minecraft version 1.20.19, and everything installed successfully. However, if I don’t specify an IP in the “server.properties” file, the server starts without any issues. As soon as I add an IP address, the server crashes.

I’ve already tried rebooting my computer and completely closing the server, but the problem persists.

Here’s the crash log:

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 2025-10-13 19:46:20
Description: Exception in server tick loop

java.lang.IllegalStateException: Failed to initialize server
	at TRANSFORMER/minecraft@1.21.9/net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:725) ~[forge-1.21.9-59.0.5-server.jar!/:?]
	at TRANSFORMER/minecraft@1.21.9/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:284) ~[forge-1.21.9-59.0.5-server.jar!/:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Transformer Audit:
  net.minecraft.server.MinecraftServer
    REASON: classloading
    PLUGIN: accesstransformer:BEFORE


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
	Minecraft Version: 1.21.9
	Minecraft Version ID: 1.21.9
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 21.0.7, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
	Memory: 90193928 bytes (86 MiB) / 339738624 bytes (324 MiB) up to 4282384384 bytes (4084 MiB)
	CPUs: 8
	Processor Vendor: GenuineIntel
	Processor Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
	Identifier: Intel64 Family 6 Model 58 Stepping 9
	Microarchitecture: Ivy Bridge (Client)
	Frequency (GHz): 3.41
	Number of physical packages: 1
	Number of physical CPUs: 4
	Number of logical CPUs: 8
	Graphics card #0 name: NVIDIA GeForce GTX 1050 Ti
	Graphics card #0 vendor: NVIDIA
	Graphics card #0 VRAM (MiB): 4096.00
	Graphics card #0 deviceId: VideoController1
	Graphics card #0 versionInfo: 32.0.15.8129
	Memory slot #0 capacity (MiB): 8192.00
	Memory slot #0 clockSpeed (GHz): 1.60
	Memory slot #0 type: DDR3
	Memory slot #1 capacity (MiB): 8192.00
	Memory slot #1 clockSpeed (GHz): 1.60
	Memory slot #1 type: DDR3
	Virtual memory max (MiB): 21704.77
	Virtual memory used (MiB): 6461.89
	Swap memory total (MiB): 5376.00
	Swap memory used (MiB): 0.00
	Space in storage for jna.tmpdir (MiB): <path not set>
	Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
	Space in storage for io.netty.native.workdir (MiB): <path not set>
	Space in storage for java.io.tmpdir (MiB): available: 450275.28, total: 953751.00
	Space in storage for workdir (MiB): available: 450275.28, total: 953751.00
	JVM Flags: 0 total; 
	Debug Flags: 0 total; 
	Server Running: true
	Active Data Packs: vanilla, mod:forge (incompatible)
	Available Data Packs: minecart_improvements, mod:forge (incompatible), redstone_experiments, trade_rebalance, vanilla
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Stable
	World Seed: 7337146887455192698
	Suppressed Exceptions: ~~NONE~~
	Is Modded: Definitely; Server brand changed to 'forge'
	Type: Dedicated Server (map_server.txt)
	ModLauncher: 10.2.4
	ModLauncher launch target: forge_server
	ModLauncher naming: mcp
	ModLauncher services: 
		/ slf4jfixer PLUGINSERVICE 
		/ runtimedistcleaner PLUGINSERVICE 
		/ runtime_enum_extender PLUGINSERVICE 
		/ capability_token_subclass PLUGINSERVICE 
		/ accesstransformer PLUGINSERVICE 
		/ mixin PLUGINSERVICE 
		/ fml TRANSFORMATIONSERVICE 
		/ forge TRANSFORMATIONSERVICE 
		/ mixin TRANSFORMATIONSERVICE 
	FML Language Providers: 
		lowcodefml@59
		minecraft@1.0
		javafml@59.0.5
	Mod List: 
		forge-1.21.9-59.0.5-server.jar                    |Minecraft                     |minecraft                     |1.21.9              |DONE      |Manifest: NOSIGNATURE
		forge-1.21.9-59.0.5-universal.jar                 |Forge                         |forge                         |59.0.5              |DONE      |Manifest: NOSIGNATURE
	Crash Report UUID: 47e820c1-b04c-460c-a7ed-fc6107e9cc4d
	FML: 59.0
	Forge: net.minecraftforge:59.0.5

How can I fix the server crash when specifying an IP in the server.properties file?

NeuroAgent

The main reason a Minecraft Forge server crashes when specifying an IP in the server.properties file is that the server tries to bind to the specified IP address, but this address is unavailable or incorrectly configured. This causes a “Failed to bind to port” error, which leads to the server crashing.

Main causes of crashes

The problem occurs for several main reasons:

  1. Incorrect IP address in server.properties
    The server tries to bind to an IP address that doesn’t exist on your computer or isn’t available for port binding.

  2. IPv4/IPv6 conflict
    This often occurs when specifying an IPv4 address in a system where IPv6 is enabled, or vice versa. The error java.net.UnknownHostException: [IP]:25565: invalid IPv6 address indicates exactly this problem.

  3. Port already in use
    Another program or instance of the Minecraft server is already using port 25565 on the specified IP address.

  4. Lack of static IP
    If you specify a local IP (for example, 192.168.1.100) but it’s assigned dynamically via DHCP, it may change after a reboot, which will lead to a binding error.

How to fix the problem

The simplest and most effective solution is to leave the IP address field empty in the server.properties file. This will force the server to automatically determine available network interfaces and bind to all available IP addresses.

Fix steps:

  1. Open the server.properties file in a text editor
  2. Find the line server-ip=
  3. Delete the IP address after the equals sign so it looks like this: server-ip=
  4. Save the file
  5. Restart the server

Important: If you want to specify a specific IP address, make sure that:

  • This IP is actually assigned to your network interface
  • There are no other services using port 25565 on this IP
  • You have a static IP address set up

Proper server.properties configuration

Here’s how to properly configure key parameters in the server.properties file for external access:

properties
# Leave empty for automatic IP detection
server-ip=

# Standard Minecraft port
server-port=25565

# For external access, you need to:
# 1. Set up port forwarding on your router
# 2. Open port 25565 in the Windows firewall
# 3. Make sure your ISP isn't blocking the port

If you still want to specify an IP address, use 0.0.0.0 to bind to all interfaces:

properties
server-ip=0.0.0.0
server-port=25565

Additional solutions

If the problem persists after clearing the IP field, try the following methods:

1. Port check

Use the command in Windows command prompt to check who is using port 25565:

cmd
netstat -ano | findstr :25565

If the port is in use, end the process with the corresponding PID or change the port in server.properties.

2. Static IP setup

If you want to use a local IP:

  1. Set a static IP in your network adapter settings
  2. Make sure the IP doesn’t conflict with other devices on the network
  3. Specify this IP in server.properties only after verifying its availability

3. Firewall setup

  1. Open “Windows Defender Firewall”
  2. Advanced settings → Inbound rules
  3. Create a rule for port 25565 (TCP and UDP)
  4. Allow connection for all profiles

Checking connection

After fixing the configuration, check server availability:

  1. Local access: Connect via localhost or 127.0.0.1
  2. Network access: Use your computer’s local IP (for example, 192.168.1.100:25565)
  3. External access: Use your public IP (you can find it at whatismyip.com)

Note: For external access, be sure to set up port forwarding on your router, redirecting port 25565 to your server’s internal IP.

Sources

  1. Minecraft Forum - Server crashes on startup when I change my IP
  2. Minecraften - Minecraft server crash when Ip specified
  3. Reddit - Minecraft server crashes on start
  4. Minecraft Forum - Advanced: server.properties IP and Port settings
  5. Reddit - [java] Cannot join my own server once I put an IP into the properties file
  6. Minecraft Wiki - server.properties
  7. MiniTool Partition Wizard - How to Fix Minecraft Server Failed to Bind to Port
  8. Minecraft Forum - [Solution] “Failed to bind to port”
  9. Reddit - r/feedthebeast - Server “Failed to Bind to Port”
  10. Saint - 7 Ways to Fix ‘Failed to Bind to Port’ Error on Minecraft

Conclusion

  1. The main problem with server crashes when specifying an IP is the attempt to bind to an unavailable or incorrectly configured network interface.

  2. The simplest solution is to leave the server-ip= field empty in the configuration file, which will allow the server to automatically determine available interfaces.

  3. For external access, you not only need to properly configure server.properties but also ensure port forwarding on your router and open the port in the firewall.

  4. If you need to specify a specific IP, make sure it’s static, actually exists on your computer, and isn’t being used by other services.

  5. If you encounter problems with port binding, use the command netstat -ano | findstr :25565 to check who is using the port, and if necessary, change the configuration port.