From efccb64246554ec6909d8afd3a783c6cfff23317 Mon Sep 17 00:00:00 2001 From: v4hn Date: Thu, 25 Sep 2025 14:20:19 +0200 Subject: [PATCH] optitrack: fix listening to another machine The interface was wrongly hardwired to receive only multicast messages sent *from the listener address*, instead of accepting packets from everyone on the listener interface. The actual restriction to listen only on the specific interface for multicast messages is a few lines further down. --- src/optitrack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optitrack.cpp b/src/optitrack.cpp index bb7c27b..0c4b41d 100644 --- a/src/optitrack.cpp +++ b/src/optitrack.cpp @@ -359,7 +359,7 @@ namespace libmotioncapture { // Create the socket so that multiple may be bound to the same address. boost::asio::ip::udp::endpoint listen_endpoint( - listen_address_boost, port_data); + boost::asio::ip::address_v4::any(), port_data); pImpl->socket.open(listen_endpoint.protocol()); pImpl->socket.set_option(boost::asio::ip::udp::socket::reuse_address(true)); pImpl->socket.bind(listen_endpoint);