Hello Java community!

My name is Brandon and i need help figuring out how to do a server for my game. My problem is when i try to make a loop for my client i have to close the socket i used to...