title: UPnP announce goes out, but device is not discovered
body: <p>i am writing code for a UPnP device to announce itself. i have no interest in it being able to discover other UPnP devices on the network. i am sending out the following messages (taken from wireshark)</p>
  <pre><code>NOTIFY * HTTP/1.1\r\n
  NT: upnp:rootdevice\r\n
  USN: uuid:0000-1111-2222-3333::upnp:rootdevice\r\n
  NTS: ssdp:alive\r\n
  LOCATION: http://192.168.40.8:80/rdd2.xml\r\n
  HOST: 239.255.255.250:1900\r\n
  CACHE-CONTROL: max-age=900\r\n
  Content-Length: 0\r\n
  \r\n   
  </code></pre>
  <p>AND</p>
  <pre><code>NOTIFY * HTTP/1.1\r\n
  NT: urn:schemas-upnp-org:device:BinaryLight:1\r\n
  USN: uuid:0000-1111-2222-3333::urn:schemas-upnp-org:device:BinaryLight:1\r\n
  NTS: ssdp:alive\r\n
  LOCATION: http://192.168.40.8:80/rdd2.xml\r\n
  HOST: 239.255.255.250:1900\r\n
  CACHE-CONTROL: max-age=900\r\n
  Content-Length: 0\r\n
  \r\n 
  </code></pre>
  <p>AND</p>
  <pre><code>NOTIFY * HTTP/1.1\r\n
  NT: uuid:0000-1111-2222-3333\r\n
  USN: uuid:0000-1111-2222-3333\r\n
  NTS: ssdp:alive\r\n
  LOCATION: http://192.168.40.8:80/rdd2.xml\r\n
  HOST: 239.255.255.250:1900\r\n
  CACHE-CONTROL: max-age=900\r\n
  Content-Length: 0\r\n
  \r\n 
  </code></pre>
  <p>the device will not discover (either on the Win 7 page where i see my other UPnP devices <strike>or on Intel's Device Spy for UPnP Technologies</strike> -- <strong>see update</strong>). i have 2 questions. first, are all of these messages necessary? and second, can anyone see why my device would not be discovered?</p>
  <p>other info:</p>
  <p>my <code>rdd2.xml</code> device description file</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot;?&gt;  
  &lt;root&gt;  
    &lt;specVersion&gt;  
      &lt;major&gt;1&lt;/major&gt;  
      &lt;minor&gt;0&lt;/minor&gt;  
    &lt;/specVersion&gt;  
  
    &lt;device&gt;  
      &lt;deviceType&gt;urn:schemas-upnp-org:device:BinaryLight:1&lt;/deviceType&gt;  
      &lt;friendlyName&gt;RFLC&lt;/friendlyName&gt;  
      &lt;manufacturer&gt;Legrand&lt;/manufacturer&gt;  
      &lt;manufacturerURL&gt;http://www.legrand.us/&lt;/manufacturerURL&gt;  
      &lt;modelDescription&gt;Legrand Low Cost RF Lighting Control&lt;/modelDescription&gt;  
      &lt;modelName&gt;X-10L1&lt;/modelName&gt;  
      &lt;modelNumber&gt;L1&lt;/modelNumber&gt;  
      &lt;modelURL&gt;http://www.legrand.us/&lt;/modelURL&gt;  
      &lt;serialNumber&gt;0000001&lt;/serialNumber&gt;  
      &lt;UDN&gt;uuid:0000-1111-2222-3333&lt;/UDN&gt;  
      &lt;UPC&gt;00000-00001&lt;/UPC&gt;
      &lt;presentationURL&gt;pres.html&lt;/presentationURL&gt;  
    &lt;/device&gt;  
  &lt;/root&gt;  
  </code></pre>
  <p>and some info from wireshark (a view down one msgs frame list)</p>
  <ul>
  <li>Frame .....</li>
  <li>Ethernet II, Src: <em>my device</em> , Dst: 239.255.255.250</li>
  <li>Internet Protocol, Src Port: ssdp (1900), Dst Port: ssdp (1900)</li>
  </ul>
  <ul>
  <li>Hypertext Transfer Protocol<br />
  <em>... msgs from above are here...</em></li>
  </ul>
  <p>UPDATE: i <strong>CAN</strong> see the device on intel's upnp utilities. that was a mistake writing that. the device was running under a debugger, and once rebooted with no debugger, it DID discover in the utilities. i still cannot see it on windows 7 though? any thoughts?</p>