Quote (Gohantrades @ Apr 5 2018 12:09pm)
Man all of these people not even trying to help you.
So first things first you need to understand Networking...
Here is how a server works
A server is just a computer listening on a specific port for a message.
A client
Is someone connecting to that computer's ip and port.
If this is done on local host, you can use ip 127.0.0.1 or "localhost"
and any port, however there are some reserved ports and most people use 8080 for local testing.
For java your server needs an input stream and an outputstream, inputstream takes the outputstream from the client and vise versa...
A common problem when trying to setup your client and server in java is you will have a deadlock(infinite wait) on getting inputstream and outputstream on clientside if you put the order wrong compared to your servers order.
I agree with people suggesting Nodejs, that is because Nodejs is built for running a server and you can use the WebSocket library.
Take a look at this echo server
I'm not allowed to post links look up on github.. basically github/
manotoor/CS380_01_ClientServer
post #2 is all the info he needs. i helped answer his question just fine, no need to shame me
This post was edited by JohnMiller92 on Apr 6 2018 03:40am