| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Specify an interface to use for multicasting not work |
| chj825 From: Taipei, Taiwan Posts: 4 Member Since: 06/23/10 |
posted June 23, 2010 2:54 AM I am using UDP multicast on a PC with more then one interface. I have tried to use the Udp1.Open & Udp1.MulticastInterface to specify an interface but not working. I still must disable all other interface for proper operation. Here is code Udp1.Open(MyHost,port) Udp1.JoinMulticastGroup(add) Udp1.MulticastInterface = System.Net.IPAddress.Parse(MyHost) Is urgent,Thanks a lot. |
| Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted June 23, 2010 12:38 PM Thank you for your post. You will require more than one instance of the UDP socket to multicast on more than one interface simultaneously. A socket can only bind to one port. You may also want to examine the 'Broadcasting and Multicasting Datagrams' help topic in the help documentation for our code snippets on multicasting. Thank you. ------ |
| chj825 From: Taipei, Taiwan Posts: 4 Member Since: 06/23/10 |
posted June 23, 2010 9:21 PM My PC has two net card, I use one net card(Ethernet2) for UDP multicast Ethernet1: 192.168.22.6 Ethernet2: 192.168.100.6 My problem is use <PowerTCP Sockets for .NET> is NOT Work use <Winsock ActiveX> is Work Here is <PowerTCP Sockets for .NET> code (not work) Dim add As System.Net.IPAddress = System.Net.IPAddress.Parse("225.0.30.30") Dim MyHost As String = "192.168.100.6" 'Ethernet2 Udp1.Open(MyHost, 3000) Udp1.JoinMulticastGroup(add) Udp1.MulticastInterface = System.Net.IPAddress.Parse(MyHost) Here is <Winsock ActiveX> code (work) Dim m_Group As String = "225.0.30.30" Dim m_Port As Integer = 3000 Dim MyHost As String = "192.168.100.6" Udp1.Open(m_Port, MyHost) Udp1.Join(m_Group) Environment is Windows server 2003 & .Net Framework 2.0 & VS2005 How to solve <PowerTCP Sockets for .NET> code? Thank you. |
| Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted June 24, 2010 11:13 AM Hello, What specifically is not working? Are you getting an error message? Are you calling a method after your setup code? What is the expected behavior, and what is the behavior you are seeing? When you disable the ethernet adapter you are not using, the .NET code does function (and your winsock code functions without doing so); is this correct? ------ |
| chj825 From: Taipei, Taiwan Posts: 4 Member Since: 06/23/10 |
posted June 25, 2010 5:05 AM I expect to recieve data. In <PowerTCP Sockets for .NET> after I call Dim buffer(Udp1.BufferSize) As Byte Udp1.BeginReceive(buffer) but Udp1_EndReceive event never raise. In <Winsock ActiveX> after Udp1_Receive event work well When you disable the ethernet adapter you are not using, the .NET code does function (and your winsock code functions without doing so); is this correct? Yes. |
| Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted June 25, 2010 10:06 AM Thank you for that information. Unfortunately, this is a known issue with the .NET Framework itself. It has already been entered in our system as TTWeb Issue #4429. Please contact sales@dart.com for information and updates as to its status. ------ |
| chj825 From: Taipei, Taiwan Posts: 4 Member Since: 06/23/10 |
posted June 28, 2010 4:03 AM All version of .NET Framework? Can I upgrade to .NET Framework 3.5 to solve? As you say, I must give up <PowerTCP Sockets for .NET> ? No other solution? |
| Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted June 28, 2010 9:00 AM Unfortunately, there are no known solutions to the issue; upgrading to 3.5 has not been shown to resolve it. I would recommend contacting sales@dart.com for more information regarding the issue; they may have information I do not. ------ |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|