Jump to content

I am making a MInecraft Java 1.16.3 server and I have problems

MateoThePro9007

So im making a private server for few people. I was doing all right until the server didnt want to open. It would open for a second and then it closed. This is the whole log of the server

[16:27:00] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
[16:27:00] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[16:27:01] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[16:27:01] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[16:27:01] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[16:27:01] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[16:27:01] [main/INFO]: Reloading ResourceManager: Default
[16:27:01] [Worker-Main-5/INFO]: Loaded 7 recipes
[16:27:02] [Worker-Main-5/INFO]: Loaded 927 advancements
[16:27:04] [Server thread/INFO]: Starting minecraft server version 1.16.3
[16:27:04] [Server thread/INFO]: Loading properties
[16:27:04] [Server thread/INFO]: Default game type: SURVIVAL
[16:27:04] [Server thread/INFO]: Generating keypair
[16:27:04] [Server console handler/ERROR]: Exception handling console input
java.io.IOException: The handle is invalid
    at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_261]
    at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_261]
    at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_261]
    at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_261]
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_261]
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_261]
    at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_261]
    at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_261]
    at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_261]
    at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_261]
    at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_261]
    at zg$1.run(SourceFile:89) [server.jar:?]
[16:27:04] [Server thread/INFO]: Starting Minecraft server on www.otherreact.ga:25565
[16:27:04] [Server thread/INFO]: Using default channel type
[16:27:06] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[16:27:06] [Server thread/WARN]: The exception was: java.net.BindException: Cannot assign requested address: bind
[16:27:06] [Server thread/WARN]: Perhaps a server is already running on that port?
[16:27:06] [Server thread/INFO]: Stopping server
[16:27:06] [Server thread/INFO]: Saving worlds
[16:27:06] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: null
    at net.minecraft.server.MinecraftServer.a(SourceFile:569) ~[server.jar:?]
    at net.minecraft.server.MinecraftServer.t(SourceFile:596) ~[server.jar:?]
    at zg.t(SourceFile:558) ~[server.jar:?]
    at net.minecraft.server.MinecraftServer.w(SourceFile:704) ~[server.jar:?]
    at net.minecraft.server.MinecraftServer.a(SourceFile:254) ~[server.jar:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]
If you want to help me, contact me on Discord: MateoThePro#4422

Link to comment
Share on other sites

Link to post
Share on other sites

It cannot bind to the specified port. Do you have another instance running that's using the same port? Did you edit the configurations at all and make a typo?

 

Edit:

You just need to put the port in the configuration, you don't use the URL. Please post the relevant portions of configuration.yml

Current Network Layout:

Current Build Log/PC:

Prior Build Log/PC:

Link to comment
Share on other sites

Link to post
Share on other sites

Indeed. Something apparently is already bound to port 25565. You can only run one Minceraft instance at a time on the same port.

If you need more servers, bind to 25566 or 25567.

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, NelizMastr said:

Indeed. Something apparently is already bound to port 25565. You can only run one Minceraft instance at a time on the same port.

If you need more servers, bind to 25566 or 25567.

Looking at the log I think they put a URL + port in that spot or something since it should be binding to a local IP address + port not a public URL + port but based on OP's final line I doubt they're coming back since they expect us to reach out to them on Discord.

Current Network Layout:

Current Build Log/PC:

Prior Build Log/PC:

Link to comment
Share on other sites

Link to post
Share on other sites

21 hours ago, Lurick said:

Looking at the log I think they put a URL + port in that spot or something since it should be binding to a local IP address + port not a public URL + port but based on OP's final line I doubt they're coming back since they expect us to reach out to them on Discord.

Valid point. I think both are parts of the problem, the binding already being taken and the local IP address not specified to bind the server to locally.

 

If they expect us to go on Discord to help them, they're sadly mistaken :D

 

I usually browse this site from work during a break and whatnot.

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/28/2020 at 4:39 PM, Lurick said:

It cannot bind to the specified port. Do you have another instance running that's using the same port? Did you edit the configurations at all and make a typo?

 

Edit:

You just need to put the port in the configuration, you don't use the URL. Please post the relevant portions of configuration.yml

What port? Nothing is using the port. And by the way the server wanted to run when i removed the cusotm ip

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/28/2020 at 4:58 PM, NelizMastr said:

Indeed. Something apparently is already bound to port 25565. You can only run one Minceraft instance at a time on the same port.

If you need more servers, bind to 25566 or 25567.

I have only one. Thanks for the tip!

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, MateoThePro9007 said:

What port? Nothing is uding the port. And by the way the server wanted to run when i removed the cusotm ip

Yah, that's what I thought, you use the URL to point to your router's WAN IP address, not to start the server under. The server will run under a local (probably 192.168.x.x) IP address and then you'll port forward on the router to point to the server. This is all assuming you're hosting at home and not somewhere else :)

Current Network Layout:

Current Build Log/PC:

Prior Build Log/PC:

Link to comment
Share on other sites

Link to post
Share on other sites

This are mine server properties right now.

broadcast-console-to-ops=true
enable-query=false
player-idle-timeout=0
difficulty=easy
spawn-monsters=true
broadcast-rcon-to-ops=true
op-permission-level=4
pvp=true
entity-broadcast-range-percentage=100
snooper-enabled=true
level-type=default
hardcore=false
enable-status=true
enable-command-block=false
max-players=15
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
function-permission-level=2
rcon.port=25575
server-port=25565
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
rcon.password=
generate-structures=true
max-build-height=256
online-mode=true
level-seed=
use-native-transport=true
prevent-proxy-connections=false
enable-jmx-monitoring=false
enable-rcon=false
motd=\u00A79         \u00A79\u00A7m---\u00A7r\u00A7m[-\u00A7b  Other Reactors\u00A7r  -]\u00A79---\u00A7r\n\u00A7a\u00A7l               The Official Server
rate-limit=0

 

My custom server ip was linked directly to my ip adress

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Lurick said:

Yah, that's what I thought, you use the URL to point to your router's WAN IP address, not to start the server under. The server will run under a local (probably 192.168.x.x) IP address and then you'll port forward on the router to point to the server. This is all assuming you're hosting at home and not somewhere else :)

Im hosting at my home for my friends at Egypt

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×