This project has moved and is read-only. For the latest updates, please go here.

multiple connections to a UDP port

Nov 22, 2010 at 5:50 AM

Here's the situation:  Two different PMUs with different IP addresses, but both configured to send UDP data to the same port, say 4713.

If I use the connection string builder wizard to build the udp connection strings, both strings are identical:

localport=4713; transportprotocol=udp; interface=;

The first of the two devices to connect works fine.  The second one fails to connect with the following error:

I've tried other connection strings, but none seems to work.  Does openPDC support multiple incomming connections to the same UDP port?  If so, how should the connection string be configured?

Application Domain:    openPDC.exe
Assembly Codebase:     d:/program files/openpdc/openpdc.exe
Assembly Full Name:    openPDC, Version=, Culture=neutral, PublicKeyToken=null
Assembly Version:
Assembly Build Date:   11/18/2010 12:02:22 AM
.Net Runtime Version:  4.0.30319.1

Exception Source:      System
Exception Type:        System.Net.Sockets.SocketException
Exception Message:     Only one usage of each socket address (protocol/network address/port) is normally permitted
Exception Target Site: DoBind

---- Stack Trace ----
   System.Net.Sockets.Socket.DoBind(endPointSnapshot As EndPoint, socketAddress As SocketAddress)
       openPDC.exe: N 6124374
   System.Net.Sockets.Socket.Bind(localEP As EndPoint)
       openPDC.exe: N 00209
   TVA.Communication.Transport.CreateSocket(address As String, port As Int32, protocol As ProtocolType)
       openPDC.exe: N 00080
       openPDC.exe: N 00673


Nov 22, 2010 at 1:08 PM

You cannot bind more than one connection to the same destination port.

Nov 22, 2010 at 8:25 PM

Hello all,

put 0 instead of localport=4713 (localport=0).

You will get an available port. You cannot bind the local port 4713 twice. Only the first will work.


Luiz Henrique