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
parent
ea63a5ecd0
commit
0a6736b9d2
|
@ -26,3 +26,4 @@ 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>
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue