Problem with QTcpSocket version Qt 5.1.0
-
wrote on 29 Aug 2013, 17:38 last edited by
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?
-
wrote on 30 Aug 2013, 01:31 last edited by
What is the value of IP_REMOTE??
-
wrote on 31 Aug 2013, 17:44 last edited by
the public IP of the correspondant for exemple 41.xxx.xx.xx
I found that the correspond when he open the port (Port forwarding) 53210, the connection it will establish.
Do you knew how Can I open the port automatically. -
wrote on 4 Sept 2013, 17:42 last edited by
No one have solution?
-
Hi,
You can't open ports like that. It's in the domain of network setup (i.e. firewall modification etc...)
-
wrote on 4 Sept 2013, 20:01 last edited by
Are there another solution? Like skype or programs peer to peer, how these programs work?
1/6