In the Safe Procedures You Need To Follow The Safety Rules In The Safe Procedures.
In DOS command type ipconfig and press enter the port number would be displayed
To open a port in Windows 7 using the command line, you can use the netsh command. For example, to open port 8080, you would enter the following command: netsh advfirewall firewall add rule name="Open Port 8080" dir=in action=allow protocol=TCP localport=8080. This command creates a new firewall rule that allows inbound traffic on TCP port 8080. Make sure to run the Command Prompt as an administrator for this to work.
Get a port
mot
mot
from command lineICAPORT /PORT:XXX where XXX represents the port number from 0 to 65535
If you don't follow safe working procedures, you or someone else could be hurt or killed.
Safe mode with command prompt option is totally depends on DOS shell, hence there is no need for separate command prompt..
mot
mot
for /l %a in (1,1,10) do @(telnet 127.0.0.1: %a)