title: How to retrieve both TCP and UDP ports with Nmap?
body: <p>I need to retrieve both TCP and UDP ports in the same scan with Nmap in the fastest way possible. I'll try to explain it better. If I use the most common command:</p>
  
  <pre><code>nmap 192.168.1.1
  </code></pre>
  
  <p>It retrieves ONLY TCP ports and it is really fast.</p>
  
  <p>If I use the following command:</p>
  
  <pre><code>nmap -sU 192.168.1.1
  </code></pre>
  
  <p>It retrieves ONLY UDP ports and it is quite fast (well not so fast but still).</p>
  
  <p>My question: is there a combination of the two commands? I tryed:</p>
  
  <pre><code>nmap -sU -sS 192.168.1.1
  nmap -sU -sT 192.168.1.1
  </code></pre>
  
  <p>But they are TERRIBLY slow.</p>
  
  <p>I am using Nmap 5.51, any suggestion?</p>