So I recently started learning about Sockets and network programming in Java as I hope to add it into a game but I’m unsure how I would implement it, I was thinking of having it so you would type in the IP of the player you wish to connect to and then you would appear in the players “world”, is this even possible or are there easier/more efficient ways? I am also curious how I would send player data, would I just use Object streams?
Sorry If I’m not being clear and sound like a newbie but I’m kind of new to networking
P.S
I’ve read the oracle tutorials/documentation and understand the basics of sockets/server sockets.