I port fowarded but for friends cant connect

java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:?]
at java.io.FileInputStream.read(FileInputStream.java:272) ~[?:?]
at java.io.BufferedInputStream.read1(BufferedInputStream.java:282) ~[?:?]
at java.io.BufferedInputStream.read(BufferedInputStream.java:343) ~[?:?]
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:297) ~[?:?]
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) ~[?:?]
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188) ~[?:?]
at java.io.InputStreamReader.read(InputStreamReader.java:181) ~[?:?]
at java.io.BufferedReader.fill(BufferedReader.java:161) ~[?:?]
at java.io.BufferedReader.readLine(BufferedReader.java:326) ~[?:?]
at java.io.BufferedReader.readLine(BufferedReader.java:392) ~[?:?]
at net.minecrell.terminalconsole.SimpleTerminalConsole.readCommands(SimpleTerminalConsole.java:180) ~[patched_1.16.1.jar:git-Paper-68]
at net.minecrell.terminalconsole.SimpleTerminalConsole.start(SimpleTerminalConsole.java:143) ~[patched_1.16.1.jar:git-Paper-68]
at net.minecraft.server.v1_16_R1.DedicatedServer$1.run(DedicatedServer.java:66) ~[patched_1.16.1.jar:git-Paper-68]
Suppressed: java.io.IOException: The handle is invalid
at java.io.FileDescriptor.close0(Native Method) ~[?:?]
at java.io.FileDescriptor.close(FileDescriptor.java:297) ~[?:?]
at java.io.FileInputStream$1.close(FileInputStream.java:368) ~[?:?]
at java.io.FileDescriptor.closeAll(FileDescriptor.java:355) ~[?:?]
at java.io.FileInputStream.close(FileInputStream.java:366) ~[?:?]
at java.io.BufferedInputStream.close(BufferedInputStream.java:481) ~[?:?]
at sun.nio.cs.StreamDecoder.implClose(StreamDecoder.java:391) ~[?:?]
at sun.nio.cs.StreamDecoder.close(StreamDecoder.java:204) ~[?:?]
at java.io.InputStreamReader.close(InputStreamReader.java:196) ~[?:?]
at java.io.BufferedReader.close(BufferedReader.java:528) ~[?:?]
at net.minecrell.terminalconsole.SimpleTerminalConsole.readCommands(SimpleTerminalConsole.java:183) ~[patched_1.16.1.jar:git-Paper-68]
at net.minecrell.terminalconsole.SimpleTerminalConsole.start(SimpleTerminalConsole.java:143) ~[patched_1.16.1.jar:git-Paper-68]
at net.minecraft.server.v1_16_R1.DedicatedServer$1.run(DedicatedServer.java:66) ~[patched_1.16.1.jar:git-Paper-68]

I keep getting this error message on start up of the server and people cant join my server even after i port fowarded and allowed it threw my firewall

go to canyouseeme.org and see if you are able to see your port. to check the port forwarding