Problem with QTcpSocket version Qt 5.1.0
-
Hi everybody,
I have started a QTcpServer for listening like this
server->listen(QHostAddress::Any,53210)
and it has start listening correctly
but, when I connect with Qtcpsocket from another IP (not local)
with this code
socket->connectToHost("IP_REMOTE",53210)
An error has appear (socket Timeout).Another information to help, when I connecti with 3G modem (don't use NAT), connection has been establish well.
Any help?
-
Hi,
You can't open ports like that. It's in the domain of network setup (i.e. firewall modification etc...)