October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Minecraft

How to Fix the “Failed to Bind to Port” Error in Minecraft

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Minecraft message **** FAILED TO BIND TO PORT! means the server could not reserve its local IP address and port for incoming connections. On Java Edition, the fastest fix for most home servers is to stop every server instance, set server-ip= (blank) in the correct server.properties file, leave server-port=25565 initially, and start the server again. If the log says Address already in use, identify and stop the process occupying the port. If it says Cannot assign requested address, the configured local IP is usually invalid or stale.

This startup problem normally occurs before router port forwarding or internet connectivity matters. Those settings become relevant only after the server starts and local or remote players still cannot connect. Paper documents an already-running process and an incorrectly configured server-ip as the two principal causes: Paper troubleshooting documentation.

Quick fix for a Java Edition server

# server.properties
server-ip=
server-port=25565
  1. Use the console stop command, close the server window or panel, and back up the server folder.
  2. Open the server.properties file used by the server you actually launch.
  3. Delete everything after server-ip=. Do not enter your public IP, router address, an old private IP, or a friend’s address.
  4. Leave server-port=25565 until you establish that the port is genuinely occupied.
  5. Check for a second Java/server process, then restart.
  6. Test from the host with localhost or 127.0.0.1.

For most home-hosted Java servers, a blank server-ip lets Minecraft listen on the machine’s available interfaces. It is not a field for the public/WAN address. Deliberate interface binding for a VPN, Hamachi, or multi-interface host is an advanced exception.

Read the complete exception

Address already in use: bind

Another process is already listening on the requested port. It may be an old server that did not exit, another modpack, a proxy, a container, a hosting-panel instance, or an unrelated application.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Razer BlackShark V2 X Xbox Gaming Headset, 3.5mm Audio Jack, Black
  • TRIFORCE TITANIUM 50 MM DRIVERS — Our cutting-edge proprietary design divides the driver into 3 parts for the individual tuning of highs, mids, and lows—producing brighter, clearer audio with richer highs and more powerful lows
  • HYPERCLEAR CARDIOID MIC — An improved pickup pattern ensures more voice and less noise as it tapers off towards the mic’s back and sides, with the sweet spot easily placed at the mouth because of the mic’s bendable design
  • ADVANCED PASSIVE NOISE CANCELLATION — Sturdy closed earcups fully cover the ears to prevent noise from leaking into the headset, with its cushions providing a closer seal for more sound isolation
  • LIGHTWEIGHT DESIGN WITH MEMORY FOAM EAR CUSHIONS — At just 240 g, the headset features thicker headband padding and memory foam ear cushions with leatherette to keep gaming in peak form during grueling tournaments and training sessions
  • WORKS WITH WINDOWS SONIC — Make the most of the headset’s powerful drivers by pairing it with lifelike surround sound that places audio with pinpoint accuracy, heightening in-game awareness and immersion

Cannot assign requested address: bind

The server was told to use an IP address that this computer does not currently own or cannot use. Clear server-ip first. A public IP normally belongs to the router, not a local network interface.

Java Edition troubleshooting, step by step

1. Stop and back up the intended server

Run stop in the console when possible, close launchers and wrappers, and back up the world and configuration files before editing. Confirm the startup script’s working directory; multiple installations, modpacks, and panels can each have a different server.properties.

2. Correct server-ip

Open the file in a plain-text editor and use:

server-ip=

Remove accidental spaces and check that there is not a duplicate configuration file elsewhere. If you intentionally need a specific interface, verify that address locally with ipconfig (Windows), ifconfig (macOS), or ip addr (Linux). A DHCP change, disconnected VPN, or removed virtual adapter can make a previously valid address disappear.

Rank #2
Sale
Ozeino Wireless Gaming Headset for PS5, PC, Switch| Lossless Audio-40H Batt
  • 【Amazing Stable Connection-Quick Access to Games】Real-time gaming audio with our 2.4GHz USB & Type-C ultra-low latency wireless connection. With less than 30ms delay, you can enjoy smoother operation and stay ahead of the competition, so you can enjoy an immersive lag-free wireless gaming experience.
  • 【Game Communication-Better Bass and Accuracy】The 50mm driver plus 2.4G lossless wireless transports you to the gaming world, letting you hear every critical step, reload, or vocal in Fortnite, Call of Duty, The Legend of Zelda and RPG, so you will never miss a step or shot during game playing. You will completely in awe with the range, precision, and audio quality your ears were experiencing.
  • 【Flexible and Convenient Design-Effortless in Game】Ideal intuitive button layout on the headphones for user. Multi-functional button controls let you instantly crank or lower volume and mute, quickly answer phone calls, cut songs, turn on lights, etc. Ease of use and customization, are all done with passion and priority for the user.
  • 【Less plug, More Play-Dual Input From 2.4GHz & Bluetooth】 Wireless gaming headset adopts high performance dual mode design. With a 2.4GHz USB dongle, which is super sturdy, lag<30ms, perfectly made for gamers. Bluetooth mode only work for phone, laptop and switch. And 3.5mm wired mode (Only support music and call).
  • 【Wide Compatibility with Gaming Devices】Setup the perfect entertainment system by plugging in 2.4G USB. The convenience of dual USB work seamlessly with your PS5,PS4, PC, Mac, Laptop, Switch and saves you from swapping cables.

3. Find and stop the process holding the port

Do not kill every Java process: Java may be running unrelated software.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows

  1. Open Task Manager with Ctrl+Shift+Esc, then inspect Processes or Details for java.exe, javaw.exe, bedrock_server.exe, panels, and wrappers.
  2. For a precise check, run
    netstat -ano | findstr :25565

    The final number is the PID. Identify it with

    tasklist /FI "PID eq <PID>"
  3. If it is definitely the unwanted server, stop it gracefully or use
    taskkill /PID <PID> /F

    as a last resort.

macOS and Linux

lsof -nP -iTCP:25565 -sTCP:LISTEN

On Linux, ss -ltnp | grep 25565 is an alternative. Stop the identified service gracefully; use kill <PID>, and reserve kill -9 <PID> for a process that will not exit normally.

4. Check all server and proxy configurations

Every listening service needs a distinct local port. For example:

Rank #3
Sale
Ozeino Gaming Headset for PC, Ps4, Ps5, Xbox Headset with 7.1 Surround Sound Gaming Headphones with Noise Canceling Mic, LED Light Over Ear Headphones for Switch, Xbox Series X/S, Laptop, Mobile White
  • Immersive 7.1 Surround Sound: This gaming headset delivering stereo surround sound for realistic audio. Whether you're in a high-speed FPS battle or losing yourself RPG adventures, this Ps5 headset provides crisp treble, punchy bass, and precise directional cues, giving you a competitive edge
  • Great Humanized Design: Comfortable and breathable permeability protein over-ear pads perfectly on your head, adjustable headband distributes pressure evenly, you’ll enjoy lasting comfort during hours of gaming and suitable for all gaming players of all ages
  • Sensitivity Noise-Cancelling Microphone: 360° omnidirectionally rotatable sensitive microphone, premium noise cancellation, sound localisation, your voice comes through loud and natural, ensuring your teammates catch every callout, even in chaotic battle scenes.
  • Universal Compatibility: This gaming headphone support for PC, Ps5, Ps4, Xbox one, Xbox Series X/S, Switch, Laptop, Mobile Phone and other devices with 3.5mm jack.Note 1: When you use headset on your PC, be sure to connect the "1-to-2 3.5mm audio jack splitter cable" (Red-Mic, Green-audio). (Please note you need an extra Microsoft Adapter when connect with an old version Xbox One controller)
  • Cool style gaming experience: Colorful RGB lights create a gorgeous gaming atmosphere, adding excitement to every match. Heightening immersion for FPS, MOBA, and action titles. These eye-catching lights give your setup a gamer-ready look while maintaining focus on performance. (*Note: The USB connector is for LED lighting only)
# Server A
server-port=25565

# Server B
server-port=25566

Check server.properties, startup scripts, Docker or container mappings, proxy settings such as Velocity or BungeeCord, and hosting-panel allocations. A port collision can persist if only one of those layers is changed.

5. Change server-port only for a confirmed conflict

If another required application owns 25565, choose an unused port such as 25566:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
server-port=25566
  1. Restart the server and confirm it binds.
  2. Update the operating-system firewall for the new port and process.
  3. For internet players, change the router forwarding destination and any DNS, tunnel, proxy, or panel allocation.
  4. Tell Java players to use public-address:25566.

Changing the port does not repair an invalid server-ip, and the normal Java port is a default rather than an immutable requirement. The official server download page explains the Java runtime and network setup context: Minecraft Java server download.

Rank #4
Sale
Logitech G432 Wired Gaming Headset - Black
  • Enjoy expansive cinematic sound. Big 50 mm audio drivers deliver an incredible sound experience
  • Hear Enemies From All Sides. DTS Headphone:X 2.0 surround sound(1) lets you hear enemies sneaking behind you, special ability cues, and immersive environments. It’s positional clarity that can make the difference between victory and defeat. Experience three-dimensional audio that goes beyond 7.1 channels to make you feel like you’re right in the middle of the action. (1) DTS Headphone:X 2.0 requires Logitech G HUB Software.
  • Be Heard Loud and Clear. The big 6 mm boom mic makes sure you’re heard by gaming partners and mutes when flipped up.
  • Use One Headset For Most Game Platforms. Your headphones work with your PC or Mac via USB DAC or 3.5 mm cable, mobile devices with 3.5 mm cable or with gaming consoles including PlayStationⓇ 5 and PlayStationⓇ 4 (USB wireless stereo sound only), Nintendo Switch (wireless stereo sound when docked)
  • Game for Hours in Comfort. Everything about these headphones is about comfort: The deluxe lightweight leatherette ear cups and headband are made to keep pressure off your ears. Ear cups rotate up to 90 degrees for convenience.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Separate startup failure from connection failure

Test locally first

Once the console stays running, connect on the host using localhost or 127.0.0.1 and the configured port. Then test from another device on the same LAN using the host’s private IP.

Only then investigate outside connections

If local and LAN tests work, examine the router’s forwarding rule, the host’s current private address, firewall permissions, ISP CGNAT, public-address changes, DNS, VPNs, and whether the client and server versions and editions are compatible. A stale router destination usually lets the server start but prevents outside players from reaching it. Port forwarding and firewall rules usually affect traffic to a listening service; they do not normally cause Address already in use.

For Java multiplayer context and compatibility guidance, see Minecraft’s multiplayer guidance.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Razer BlackShark V2 X Gaming Headset: 7.1 Surround Sound - 50mm Drivers - Memory Foam Cushion - For PC, PS4, PS5, Switch - 3.5mm Audio Jack - Black
  • ADVANCED PASSIVE NOISE CANCELLATION — sturdy closed earcups fully cover ears to prevent noise from leaking into the headset, with its cushions providing a closer seal for more sound isolation.
  • 7.1 SURROUND SOUND FOR POSITIONAL AUDIO — Outfitted with custom-tuned 50 mm drivers, capable of software-enabled surround sound. *Only available on Windows 10 64-bit
  • TRIFORCE TITANIUM 50MM HIGH-END SOUND DRIVERS — With titanium-coated diaphragms for added clarity, our new, cutting-edge proprietary design divides the driver into 3 parts for the individual tuning of highs, mids, and lowsproducing brighter, clearer audio with richer highs and more powerful lows
  • LIGHTWEIGHT DESIGN WITH BREATHABLE FOAM EAR CUSHIONS — At just 240g, the BlackShark V2X is engineered from the ground up for maximum comfort
  • RAZER HYPERCLEAR CARDIOID MIC — Improved pickup pattern ensures more voice and less noise as it tapers off towards the mic’s back and sides

Bedrock Dedicated Server differences

Bedrock Dedicated Server uses the bedrock_server executable, not a Java .jar. Microsoft documents Windows and Ubuntu Linux support. Its documented default ports are:

Setting Documented default
server-port 19132 (IPv4)
server-portv6 19133 (IPv6)

Values may be changed within the documented 1–65535 range. Use the configured port, not Java’s 25565, in diagnostic commands. Microsoft references local Windows testing with 127.0.0.1:19132 and explains startup and firewall requirements at Bedrock Dedicated Server getting started and Bedrock server properties.

Multiple Bedrock instances

Assign each instance a unique server-port and, when IPv6 is enabled, a unique server-portv6. Check enable-lan-visibility: Microsoft notes that true can make a server bind default LAN-discovery ports even when custom game ports are set, creating an additional collision on a shared host.

Same-machine Windows client

A Windows Bedrock client can have a separate loopback restriction even when the server has started. Microsoft provides this command:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-1958404141-86561845-1752920682-3514627264-368642714-62675701-733520436

This addresses client connection testing; it is not a server bind repair.

Advanced causes worth checking

  • Hidden restart loop: a panel or script may immediately launch a second copy after a crash.
  • VPN and virtual adapters: Hamachi, Tailscale, ZeroTier, and corporate VPNs can add or remove local addresses.
  • Changed DHCP address: keep server-ip blank; reserve the host’s private address in the router if forwarding is required.
  • IPv6 configuration: avoid adding IPv6 to the first fix; establish ordinary IPv4 operation first.
  • Management ports: newer Java releases can expose an optional management-server-port, separate from server-port. If enabled, it also needs an unused port; see Minecraft Java Edition 1.21.9 release notes.
  • Different error category: UnsupportedClassVersionError indicates an incompatible Java runtime, while outdated-client or world-version messages are compatibility problems, not port binding failures.

Final diagnostic checklist

  • The server folder and startup command are the intended ones.
  • The console shows the complete exception line.
  • server-ip= is blank unless deliberate interface binding is required.
  • The configured port is not owned by an unwanted process.
  • Other servers, proxies, containers, and panels use distinct ports.
  • Local connection succeeds before router or firewall troubleshooting begins.
  • Any changed port is reflected in firewall, forwarding, DNS, tunnel, and client instructions.
  • Java and Bedrock settings and default ports have not been mixed.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.