QTfrontend/net/netudpserver.cpp
changeset 8609 3f6c08223aa1
parent 6952 7f70f37bbf08
child 9080 9b42757d7e71
--- a/QTfrontend/net/netudpserver.cpp	Thu Feb 28 22:47:42 2013 +0100
+++ b/QTfrontend/net/netudpserver.cpp	Thu Feb 28 22:59:22 2013 +0100
@@ -20,13 +20,14 @@
 #include <QUdpSocket>
 
 #include "netudpserver.h"
+#include "hwconsts.h"
 
 HWNetUdpServer::HWNetUdpServer(QObject *parent, const QString & descr, quint16 port) :
     HWNetRegisterServer(parent, descr, port),
     m_descr(descr)
 {
     pUdpSocket = new QUdpSocket(this);
-    pUdpSocket->bind(46631);
+    pUdpSocket->bind(NETGAME_DEFAULT_PORT);
     connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead()));
 }