Here are steps to forcefully free used ports.
1) Search cmd and run it as Admin Mode by choosing “Run as administrator” on right click.
2) Type following command and hit enter
This will provide a list of ports, along with the PID (process ID) that has those ports open.
(Shortcut: netstat -ano | findstr portNumber)
3) Now Check the process id corresponding to which you want to free port
taskkill /PID XXX
4) To forcefully kill
taskkill /F /PID XXX