r/learnjava • u/One_Butterfly7169 • 9d ago
Create a local server
I'm working on a client-server project for college, and I have an intermediate level of Java knowledge. I'd like to know what I need to learn to create this server. I wouldn't want to using AI to do all this, just to clear up any doubts. Is there any documentation for this, websites, YouTube channels that you recommend?
12
Upvotes
View all comments
8
u/8dot30662386292pow2 9d ago
Just create a ServerSocket object. It listens to connections. Then use Sockets to connect. Then decide what do you want to send from socket to socket. Some commands maybe?
Google about serversockets usage, you find plenty of examples.