I have made a 2 player game in java for my class but I am looking to make it online. Currently it is set up and running on my localhost socket = new Socket("localhost", 30000);. However I have been reading into how to set up a server. I have set up an AWS account and have an instance if EC2 up and running with java installed on it. I am hoping someone can tell me how do I set up the server or are there any good tutorials on setting up the server on EC2. Also when it is set up what do I replace localhost with?
Thank you so much!