From 0a6736b9d2b74bc0e7382ab2dfe47440e2246cf3 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sun, 31 Mar 2019 09:57:18 +0930 Subject: [PATCH] Change RemoteIo bind ip from local host to any This would allow other software to contact with Dust3D without limit on the same machine, however, the user still need to enable it by command line "-remoteio". --- CONTRIBUTORS | 3 ++- docs/remote_io_protocol.rst | 1 + src/remoteioserver.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c312eff6..06b1cf42 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -25,4 +25,5 @@ Ruben Niculcea boynet fornclake bvanevery -Toshio Araki \ No newline at end of file +Toshio Araki +Evan Gruda \ No newline at end of file diff --git a/docs/remote_io_protocol.rst b/docs/remote_io_protocol.rst index c3fa35f6..f243a5e5 100644 --- a/docs/remote_io_protocol.rst +++ b/docs/remote_io_protocol.rst @@ -25,6 +25,7 @@ Python Example # e.g. # $ open ./dust3d.app --args -remoteio # $ ./dust3d -remoteio + # $ ./dust3d.AppImage -remoteio import socket import binascii diff --git a/src/remoteioserver.cpp b/src/remoteioserver.cpp index 9a7d0970..0c11e68e 100644 --- a/src/remoteioserver.cpp +++ b/src/remoteioserver.cpp @@ -58,7 +58,7 @@ void RemoteIoServer::sessionOpened() } m_tcpServer = new QTcpServer(this); - if (!m_tcpServer->listen(QHostAddress::LocalHost, m_listenPort)) { + if (!m_tcpServer->listen(QHostAddress::Any, m_listenPort)) { qDebug() << "Unable to listen on remote io port, error:" << m_tcpServer->errorString(); return; }