Okay so this is where I stand. I have my home server running 1.8.9, I am able to join it but my friend is unable to. I have my ports forwarded correctly.
When I run the server this is what pops up in the logs.
[20:58:46] [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_71]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_71]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_71]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_71]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_71]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_71]
at ko$2.run(SourceFile:81) [minecraft_server.1.8.9.exe:?]
[20:58:46] [Server thread/INFO]: Starting minecraft server version 1.8.9
[20:58:46] [Server thread/INFO]: Loading properties
[20:58:46] [Server thread/INFO]: Default game type: SURVIVAL
[20:58:46] [Server thread/INFO]: Generating keypair
[20:58:46] [Server thread/INFO]: Starting Minecraft server on 192.168.0.4:25565
[20:58:46] [Server thread/INFO]: Using default channel type
[20:58:46] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[20:58:46] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[20:58:46] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[20:58:46] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[20:58:46] [Server thread/WARN]: Failed to load white-list:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
at com.google.gson.Gson.fromJson(Gson.java:815) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[minecraft_server.1.8.9.exe:?]
at mb.g(SourceFile:125) ~[minecraft_server.1.8.9.exe:?]
at kn.C(SourceFile:123) [minecraft_server.1.8.9.exe:?]
at kn.<init>(SourceFile:30) [minecraft_server.1.8.9.exe:?]
at ko.i(SourceFile:172) [minecraft_server.1.8.9.exe:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:421) [minecraft_server.1.8.9.exe:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_71]
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[minecraft_server.1.8.9.exe:?]
... 7 more
[20:58:46] [Server thread/INFO]: Preparing level "world"
[20:58:47] [Server thread/INFO]: Preparing start region for level 0
[20:58:47] [Server thread/INFO]: Done (0.955s)! For help, type "help" or "?"
[20:59:02] [Server thread/INFO]: Devynao[/192.168.0.4:57736] logged in with entity id 322 at (52.23973887090594, 69.0, -485.3718500344041)
[20:59:02] [Server thread/INFO]: Devynao joined the game
[20:59:07] [Server thread/INFO]: Devynao lost connection: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
[20:59:07] [Server thread/INFO]: Devynao left the game
Okay so this is where I stand. I have my home server running 1.8.9, I am able to join it but my friend is unable to. I have my ports forwarded correctly.
When I run the server this is what pops up in the logs.
[20:58:46] [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_71]
at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_71]
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_71]
at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_71]
at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_71]
at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_71]
at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_71]
at ko$2.run(SourceFile:81) [minecraft_server.1.8.9.exe:?]
[20:58:46] [Server thread/INFO]: Starting minecraft server version 1.8.9
[20:58:46] [Server thread/INFO]: Loading properties
[20:58:46] [Server thread/INFO]: Default game type: SURVIVAL
[20:58:46] [Server thread/INFO]: Generating keypair
[20:58:46] [Server thread/INFO]: Starting Minecraft server on 192.168.0.4:25565
[20:58:46] [Server thread/INFO]: Using default channel type
[20:58:46] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[20:58:46] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[20:58:46] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[20:58:46] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[20:58:46] [Server thread/WARN]: Failed to load white-list:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
at com.google.gson.Gson.fromJson(Gson.java:815) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[minecraft_server.1.8.9.exe:?]
at mb.g(SourceFile:125) ~[minecraft_server.1.8.9.exe:?]
at kn.C(SourceFile:123) [minecraft_server.1.8.9.exe:?]
at kn.<init>(SourceFile:30) [minecraft_server.1.8.9.exe:?]
at ko.i(SourceFile:172) [minecraft_server.1.8.9.exe:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:421) [minecraft_server.1.8.9.exe:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_71]
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60) ~[minecraft_server.1.8.9.exe:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[minecraft_server.1.8.9.exe:?]
... 7 more
[20:58:46] [Server thread/INFO]: Preparing level "world"
[20:58:47] [Server thread/INFO]: Preparing start region for level 0
[20:58:47] [Server thread/INFO]: Done (0.955s)! For help, type "help" or "?"
[20:59:02] [Server thread/INFO]: Devynao[/192.168.0.4:57736] logged in with entity id 322 at (52.23973887090594, 69.0, -485.3718500344041)
[20:59:02] [Server thread/INFO]: Devynao joined the game
[20:59:07] [Server thread/INFO]: Devynao lost connection: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
[20:59:07] [Server thread/INFO]: Devynao left the game
And this is my server properties.
#Minecraft server properties
#Mon Feb 08 20:58:46 EST 2016
spawn-protection=0
max-tick-time=60000
query.port=25565
generator-settings=
force-gamemode=false
allow-nether=true
gamemode=0
enable-query=false
player-idle-timeout=0
difficulty=1
spawn-monsters=true
op-permission-level=4
resource-pack-hash=
announce-player-achievements=true
pvp=true
snooper-enabled=true
level-type=DEFAULT
hardcore=false
enable-command-block=true
max-players=20
network-compression-threshold=256
max-world-size=29999984
server-port=25565
debug=false
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
generate-structures=true
online-mode=false
max-build-height=256
level-seed=
enable-rcon=false
motd=
Where is says server ip, I have tried putting in my IPv4 address it doesn't make a difference.
Please help me out. Thanks!
Hey Try turning on
online-mode=true
Edit= And turn on white list and add your friends then it will become a private server
He still cannot connect.