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".
master
Jeremy Hu 2019-03-31 09:57:18 +09:30
parent ea63a5ecd0
commit 0a6736b9d2
3 changed files with 4 additions and 2 deletions

View File

@ -25,4 +25,5 @@ Ruben Niculcea <https://github.com/RubenSandwich>
boynet <https://dust3d.discourse.group/u/boynet> boynet <https://dust3d.discourse.group/u/boynet>
fornclake <https://www.reddit.com/user/fornclake> fornclake <https://www.reddit.com/user/fornclake>
bvanevery <https://www.reddit.com/user/bvanevery> bvanevery <https://www.reddit.com/user/bvanevery>
Toshio Araki <https://github.com/Toshiwoz> Toshio Araki <https://github.com/Toshiwoz>
Evan Gruda <evangruda@ufl.edu>

View File

@ -25,6 +25,7 @@ Python Example
# e.g. # e.g.
# $ open ./dust3d.app --args -remoteio # $ open ./dust3d.app --args -remoteio
# $ ./dust3d -remoteio # $ ./dust3d -remoteio
# $ ./dust3d.AppImage -remoteio
import socket import socket
import binascii import binascii

View File

@ -58,7 +58,7 @@ void RemoteIoServer::sessionOpened()
} }
m_tcpServer = new QTcpServer(this); 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(); qDebug() << "Unable to listen on remote io port, error:" << m_tcpServer->errorString();
return; return;
} }