|`-sp <port_number>` |Query from a specific source port |<ul><li>The \<*port_number*> value represents the port that PortQry uses to send the query.</li><li>PortQry can't use a port that another process is already using. If the port that you specify is already in use, PortQry returns the following error message:<br/>Cannot use specified source port.<br/>Port is already in use.<br/>Specify a port that is not in use and run the command again.</li><li>In the following cases, PortQry uses the specified port for the first test of the query, but not the second test: <ul><li>RPC (TCP and UDP ports 135)</li><li>LDAP (UDP port 389)</li><li>NetBIOS Adapter status query (UDP port 137)</li></ul>In these cases, PortQry uses an ephemeral port for the second test. When this occurs, PortQry records "Using ephemeral source port" in its output.</li><li>If the computer where PortQry is installed also runs the IPSec policy agent, UDP port 500 may not be available to use as a source port. To temporarily turn off the IPSec policy agent so that you can use port 500, run `net stop PolicyAgent`. When you have finished testing, run `net start PolicyAgent`.</li></ul> |
0 commit comments