I have created a Server, Client kind of program with RMI. But whenever I run my Server after starting the rmiregistry from command prompt, the port already in use error is t
If you're using macOS, you can stop port following as:
First thing you need to find the PID_number: lsof -i :1099
lsof -i :1099
And then kill that port: kill -9 PID_number
kill -9 PID_number