I'm making a call to the ServerSocket constructor with the following parameters.
ServerSocket ss = new ServerSocket(0, num, host);
The values of the variable are:
num=5 & host=/56.224.235.106
And 56.224.235.106 is the IP adress of the machine the code resides on.
This line is causing the exception following exception:
Error : java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address
BTW, This is an AWS instance where I'm hosting 2 instances. I have one client and a server instance and there are 2 separate security groups for these instances where I have allowed TCP traffic from any iPV4 addresses.
How can I resolve this, is there an issue with my code or does my security group setting needs some change.