Skip to content

Tag: server

Java Implementing a Client Server Model (Using TCP) and sending a IP address from server and Printing it out on Client

Server code: Client code: Error: Server side: Exception in thread “main” java.lang.NumberFormatException: For input string: “ip” at java.base/java.lang.NumberFormatException.forInputString( at java.base/java.lang.Integer.parseInt( at java.base/java.lang.Byte.parseByte( at java.base/java.lang.Byte.parseByte( at exp1/exp1.MyServerSocket.main([]( I’m trying to display the localhost’s ip on client but I get an error. Answer getHostAddress returns a string representation of an address. So, this method returns something like which can’t be parsed

Minecraft forge server not working / downloading files

I’ve created a bat file with the command line ” java -Xmx1G -Xms1G -jar forge-1.12.2- nogui ” inside my server folder. It keeps closing there is some kind of error. I removed my name of course from the folders and I blurred out the folder name it’s a stupid name. and that’s my folder. Answer This issue appear because of