Next time if you mess up your ports.
Restart the IS with : server.bat -port ABCD
where ABCD can be an unbound ( unused) port.
Keep in mind that this will override all the previous port entries in your configuration files.
As per your question Srinivaswebm:
TAZ/Talha asked renuka to shutdown her IS, backup her config directory and delete the directory and start the IS.That recreates the config directory.TAZ/Talha didnt ask her to uninstall the IS.
Yes, make sure your IS is shutdown before you uninstall your webmethods components. This “might” cause leave you with renegade ports that wouldnt unbind.Make sure you select all the components.