If i understand it correctly then your example is wrong ssdp is udp so you need to create a UDP package. ssdp send its payload in http Format over udp so you can only use "Net". Your example shows a http request what should not work because it use TCP. So you can create the ssdp request with Sprintf, or Just a predifined string because i Thing it would always be the same, and send the Bytes via udp