Group:  English: Entertainment ยป microsoft.public.windowsmedia.sdk
Thread: WMP settings

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Re: WMP settings
"Chris P." <msdn[ at ]chrisnet.net> 23.06.2007 14:38:45
On Mon, 23 Jul 2007 08:23:03 +0200, Ronny wrote:

[Quoted Text]
> I'd like to control the port which WMP uses as a source port, when receiving
> HTTP stream from WME. Trying to do that to a standard WMP in the options
> menu, I had to select a range (the default is 7000-7007) but even after
> selecting that, I could see with a sniffer that the source port is
> different, and also differs from a session to session.
> I work in a LAN, where the WME and WMP run on different PC's. The URL of the
> WMP is set to port 8080 and the received stream in the WMP is fine.
> My questions-
> 1. What is the relations between the port range 7000 - 70007 and the "source
> port" as indicated by the sniffer in the TCP packets.
> 2. Can I set the "source port" to be permanent in all sessions and how?
> 3. Is there any sample in the WMP samples in which I can set this port to a
> permanent value?

The "use ports" is only for the UDP streaming. With TCP streams the source
port (client port) is determined automatically by the operating system and
should not be forced. With TCP the only port that is specified is the
"connect to" port, i.e. the port that is acting as a server (WME in this
case).

So when using TCP protocols such as HTTP the source port cannot be set, and
would serve not purpose. WMP makes an outbound connection to port (e.g.
WME port 8080) and passes it's (random) client port to the server. When
the server binds the connection a "pipe" is established that allows data to
flow in both directions.

--
http://www.chrisnet.net/code.htm
[MS MVP for DirectShow / MediaFoundation]
Re: WMP settings
"Ronny" <ronny[ at ]lack.net.il> 25.06.2007 09:02:14
Thanks,
Why then does WMP use 2 ports when connecting to WME?
Are they always consecutive?

Thanks

Ronny
[Quoted Text]
> The "use ports" is only for the UDP streaming. With TCP streams the
source
> port (client port) is determined automatically by the operating system and
> should not be forced. With TCP the only port that is specified is the
> "connect to" port, i.e. the port that is acting as a server (WME in this
> case).
>
> So when using TCP protocols such as HTTP the source port cannot be set,
and
> would serve not purpose. WMP makes an outbound connection to port (e.g.
> WME port 8080) and passes it's (random) client port to the server. When
> the server binds the connection a "pipe" is established that allows data
to
> flow in both directions.
>
> --
> http://www.chrisnet.net/code.htm
> [MS MVP for DirectShow / MediaFoundation]


Re: WMP settings
"Neil Smith [MVP Digital Media]" <neil[ at ]nospam.com> 25.06.2007 17:06:06
WMP only connects to one port (because WME only serves data on one
port). Where did you get this 2 port idea ?

If you start and then stop the connection, there's a HTTP protocol
based timeout, where the port on the machine with WMP conected to the
encoder will be in closing state for some time - perhaps that's what
you mean?

Cheers - Neil


On Mon, 25 Jun 2007 11:02:14 +0200, "Ronny" <ronny[ at ]lack.net.il> wrote:

[Quoted Text]
>Thanks,
>Why then does WMP use 2 ports when connecting to WME?
>Are they always consecutive?
>
>Thanks
>
>Ronny
>> The "use ports" is only for the UDP streaming. With TCP streams the
>source
>> port (client port) is determined automatically by the operating system and
>> should not be forced. With TCP the only port that is specified is the
>> "connect to" port, i.e. the port that is acting as a server (WME in this
>> case).
>>
>> So when using TCP protocols such as HTTP the source port cannot be set,
>and
>> would serve not purpose. WMP makes an outbound connection to port (e.g.
>> WME port 8080) and passes it's (random) client port to the server. When
>> the server binds the connection a "pipe" is established that allows data
>to
>> flow in both directions.
>>
>> --
>> http://www.chrisnet.net/code.htm
>> [MS MVP for DirectShow / MediaFoundation]
>
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
WMP settings
"Ronny" <ronny [ at ]gur.co.il> 23.07.2007 06:23:03
I'd like to control the port which WMP uses as a source port, when receiving
HTTP stream from WME. Trying to do that to a standard WMP in the options
menu, I had to select a range (the default is 7000-7007) but even after
selecting that, I could see with a sniffer that the source port is
different, and also differs from a session to session.
I work in a LAN, where the WME and WMP run on different PC's. The URL of the
WMP is set to port 8080 and the received stream in the WMP is fine.
My questions-
1. What is the relations between the port range 7000 - 70007 and the "source
port" as indicated by the sniffer in the TCP packets.
2. Can I set the "source port" to be permanent in all sessions and how?
3. Is there any sample in the WMP samples in which I can set this port to a
permanent value?

Regards

Ronny


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net