I know its pretty silly question but I am not able to get it done.
I have a simple chat service. 2 java programs. One is client.java and other is server.java. It is developed using sockets. Now I tested it. It works perfectly well in the localhost.
I have created windows server 2012 EC2 instance on AWS and run my server.java through command prompt in window server. But when I am trying to connect to it from my machine via client.java, I am not able to connect to it.
What might be the reason?