INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Dual Network Cards and UPnP  (Read 1386 times)

horse

  • Regular Member
  • World Citizen
  • ***
  • Posts: 212
Dual Network Cards and UPnP
« on: November 06, 2006, 11:52:27 am »

Have been testing the UPnP functionality on an XP box using MC11 and now MC12.106 to resolve a receiver issue.

Now I have moved this over to the intented target machine - A windows 2003 server which has dual ethernet cards (One to public Network and one for the internal networks)

When I start the UPnP server I cannot see it from the UPnP client. Checking the network, there are no advertisments being sent. While experimenting I disabled the Public ethernet card and started the UPnP server and now it works fine. I can then re enable the Public interface and all continues to work.
If I restart the UPnP server with the pubc interface enabled it fails again.
Disabling the Public ethernet card and restarting makes it work again.

Looks like the UPnP (do the other servers?) binds itself to the Public interface only.

1/ Should it bind to all interfaces?
2/ Is there a way to tell MC12 to only use a specific Network card?

I think the same thing happened in MC11 but cannot be sure
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: Dual Network Cards and UPnP
« Reply #1 on: November 06, 2006, 03:36:11 pm »

The UPnP server should bind on all network interfaces (there is no way to specify an interface).

I added some logging in the advertizing component (in the next version, 12.0.107). Turn on ONLY the Sharing plugins and start the server. It will advertise and put some stuff in the log. Post the log here, and I'll take a look.

j

horse

  • Regular Member
  • World Citizen
  • ***
  • Posts: 212
Re: Dual Network Cards and UPnP
« Reply #2 on: November 06, 2006, 07:50:06 pm »

Installed 12.107 and with both NIC's enabled this is the log (with the public IP modified to xxx.xxx.xxx.xxx)
Looks like it is sending the SSDP to both interfaces.
Checked with the network monitor and the Public and Private interfaces enabled - Looked at the trace and I see both the public and private advertisments on the public interface. I see the IGMP packets only on the Public, nothing on the private unless it is the only interface enabled. It is as if the multicast is only binding to the public interface. Weird  - Sent you the trace via pm.

Tivo server is working on the private and public network just fine.  (just checked I see the UDP broadcast on both Public and private networks; hope the FW is working correctly :-)  )

Media Center; Version: 12.0.107; Types: 1024
0011938: Sharing Plugins: CUPnPServerCtrl::StatusMessage: JRiver UPnP Server Version 1.0.39 starting...: Start
0011938: Sharing Plugins: CMainDialog::StatusMessage: JRiver UPnP Server Version 1.0.39 starting...: Start
0011938: Sharing Plugins: CMainDialog::StatusMessage: JRiver UPnP Server Version 1.0.39 starting...: Finish (0 ms)
0011938: Sharing Plugins: CUPnPServerCtrl::StatusMessage: JRiver UPnP Server Version 1.0.39 starting...: Finish (0 ms)
0011953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Start
0011953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Number of interfaces: 2
0011953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Interface number 0 has IP address 192.168.1.20
0011953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Interface number 1 has IP address xxx.xxx.xxx.xxx
0011953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Finish (0 ms)
0012953: Sharing Plugins: CUPnPServerCtrl::StatusMessage: UPnP Media Server Device started on port 53939: Start
0012953: Sharing Plugins: CMainDialog::StatusMessage: UPnP Media Server Device started on port 53939: Start
0012953: Sharing Plugins: CMainDialog::StatusMessage: UPnP Media Server Device started on port 53939: Finish (0 ms)
0012953: Sharing Plugins: CUPnPServerCtrl::StatusMessage: UPnP Media Server Device started on port 53939: Finish (0 ms)
0012953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Start
0012953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Number of interfaces: 2
0012953: Sharing Plugins: CUPnPServerCtrl::StatusMessage: Running: Start
0012953: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Interface number 0 has IP address 192.168.1.20
0012953: Sharing Plugins: CMainDialog::StatusMessage: Running: Start
0012953: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0012953: Sharing Plugins: CMainDialog::StatusMessage: Running: Finish (0 ms)
0012953: Sharing Plugins: CUPnPServerCtrl::StatusMessage: Running: Finish (0 ms)
0012953: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013016: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013016: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013078: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013078: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013141: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013141: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013203: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013203: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013266: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013266: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013328: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013328: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013391: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013391: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013453: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013453: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0013516: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013891: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (375 ms)
0013953: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0013953: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014016: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014016: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014078: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014078: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014141: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014141: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014203: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014203: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014266: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Interface number 1 has IP address xxx.xxx.xxx.xxx
0014266: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014266: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014328: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014328: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014391: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014391: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014453: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014453: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014516: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014532: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (16 ms)
0014594: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014594: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014657: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014657: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014719: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014719: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014782: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014782: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014844: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014844: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014907: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014907: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0014969: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0014969: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0015032: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0015032: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0015094: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0015094: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0015157: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Start
0015157: Sharing Plugins: CHTTPRequestMessage::WritePreamble: Finish (0 ms)
0015219: Sharing Plugins: CSSDPAdvertiser::NotifyAll: Finish (2266 ms)
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: Dual Network Cards and UPnP
« Reply #3 on: November 07, 2006, 02:46:34 pm »

I've fixed the bug with the broadcasting: I correctly choose multiple interfaces for constructing the body of the packets (that is, the URL of the device description), but I wasn't binding the packet to the correct interface, so it was always taking the "first" one. Try build 12.0.109 or higher, let me know if it works.

Thanks for finding this...

j

horse

  • Regular Member
  • World Citizen
  • ***
  • Posts: 212
Re: Dual Network Cards and UPnP
« Reply #4 on: November 08, 2006, 09:47:17 pm »

Thanks John,

Loaded up MC12.109 and I see the public address on the public interface and the private address on the private interface. Not both on the public and none on the private as before. :-)
Works like a dream.
Logged
Pages: [1]   Go Up