[mythtv] UPNP Port with WinXP SP2 Pro

Otto Kolsi otto at kolsi.fi
Wed Dec 5 17:50:39 UTC 2007


I've wondered for some time why Windows XP doesn't work together with 
Myth's UPNP. I finally checked the network traffic between WinXP machine 
and Myth backend and noticed that WinXP sends M-SEARCH messages with 
Host header: "239.255.255.250:1900" but the source port is 1190.

Myth's UPNP code responds directly to peer port 1190 when it should (?) 
check the host header or respond to hard coded 1900 port or something 
similar. Or at least this is how XP expects it to work (I don't know 
what is the "right" thing to do, don't know the UPNP/SSDP protocol details).

I quickly hard coded "peerPort" to be 1900 in SSDP::ProcessData() and 
got WinXP to e.g. make further "GET /getDeviceDesc" request to backend. 
I'm not sure if XP actually is capable of using Myth's UPNP since even 
with this quick hack, Myth is not listed in "My Network Places" where 
all the UPNP devices should appear.

But anyway, thought to share these findings..
--
   Otto


More information about the mythtv-dev mailing list