diff --git a/controls-core/src/jvmMain/kotlin/space/kscience/controls/ports/ChannelPort.kt b/controls-core/src/jvmMain/kotlin/space/kscience/controls/ports/ChannelPort.kt index 0a9a0f0..d0b9e1f 100644 --- a/controls-core/src/jvmMain/kotlin/space/kscience/controls/ports/ChannelPort.kt +++ b/controls-core/src/jvmMain/kotlin/space/kscience/controls/ports/ChannelPort.kt @@ -114,7 +114,7 @@ public object UdpPort : PortFactory { coroutineContext: CoroutineContext = context.coroutineContext, ): ChannelPort = ChannelPort(context,coroutineContext){ DatagramChannel.open().apply { - bind(InetSocketAddress(host, port)) + connect(InetSocketAddress(host, port)) configureBlocking(false) } }