NAT 999 ping only after finishing a game
POSSIBLE SOLUTION:
First of all, I wanted to mention that Refined GunZ more or less fixes the issue. However, if you don't want to use Refined GunZ:
In matchAgent.xml I changed both ips to my local ip instead of the public ip. I still get NAT but I haven't gotten 999 ping. I figured this out by looking at the Refined GunZ MatchAgent.xml found in the source.
---------------------
When I start the server a create a game, I can play 1 game perfectly fine with no NAT. When I finish the game and start another, I get 999 ping NAT.
Matchserver.ini
Code:
[SERVER]
MAXUSER=200
SERVERID=1
SERVERNAME="name"
SERVERPORT=6000
SERVERUDPPORT=7777
FREELOGINIP=""
KEEPERIP="wan"
DEBUGIP="127.0.0.1"
MONITORIP="wan"
MONITORPORT=9000
DEBUG="1"
MODE=Quest
COUNTRY="KOR"
LANGUAGE="KOR"
USETICKET="0"
GAMEGUARD="1"
;Survival Mode : 1 for enable, 0 for disable (works only when MODE=test)
SURVIVALENABLE="1"
;Daily request time for survival ranking list(hour:0~23, minute:0~59)
SURVIVALRANKING_DAILY_REQUEST_HOUR="5"
SURVIVALRANKING_DAILY_REQUEST_MINUTE="0"
locator.ini
Code:
[NETWORK]
IP="wan"
PORT="8900"
matchagent.xml
Code:
<?xml version="1.0" encoding="euc-kr"?>
<XML>
<AGENTCONFIG>
<NAME>name</NAME>
<MAXCLIENT>500</MAXCLIENT>
<MATCHSERVERADDRESS ip="wan" tcpport="6000"/>
<ADDRESS ip="wan" tcpport="5100" udpport="7778"/>
</AGENTCONFIG>
</XML>
sql dbo.ServerStatus ip = wan
ports forwarded: 5100, 6000, 6005, 6011, 6100, 7700, 7777, 7778, 7800, 8900, 9000
I've set my PC as a static IP and opened DMZ host, same problem.
Re: NAT 999 ping only after finishing a game
Re: NAT 999 ping only after finishing a game
Re: NAT 999 ping only after finishing a game
you need quality dedicated to avoid NAT
Re: NAT 999 ping only after finishing a game
Quote:
Originally Posted by
Arenbunny
you need quality dedicated to avoid NAT
I'm not sure what you mean. Are you saying I need a VPS? If so, I'd rather run the server on my PC if possible because the server will only be running when I'm playing, not 24/7.
Re: NAT 999 ping only after finishing a game
This happens to me, but it's all the time, I can not play with my friends.
NAT appears, and also ping 999
Re: NAT 999 ping only after finishing a game
Quote:
Originally Posted by
discordaxe
I'm not sure what you mean. Are you saying I need a VPS? If so, I'd rather run the server on my PC if possible because the server will only be running when I'm playing, not 24/7.
this error does not occur if your connection line is a good example a good dedication (vps) contains high levels of connection making fast the interaction of one user towards another!
Re: NAT 999 ping only after finishing a game
Quote:
Originally Posted by
Arenbunny
this error does not occur if your connection line is a good example a good dedication (vps) contains high levels of connection making fast the interaction of one user towards another!
My connection is 500 Mbps down and 30 Mbps up. I have a docsis 3.1 modem. That isn't good enough to run a gunz server and play on the same pc at the same time?
Isn't it weird that I can play 1 game perfectly without NAT but when I finish and start another I suddenly get 999 ping NAT?
Re: NAT 999 ping only after finishing a game
Open Port 7777, 7778 and 5100 in UPD y TCP.
Re: NAT 999 ping only after finishing a game
Quote:
Originally Posted by
jorklenis2
Open Port 7777, 7778 and 5100 in UPD y TCP.
I have opened those ports and more. I've also set my PC as a static IP and opened DMZ host. Still 999 ping NAT. I can't help but feel that this is an issue on my ISP's side. I'd rather not have to rent a VPS/server, but it's looking like my only option unless you have some more ideas.
Re: NAT 999 ping only after finishing a game
This is from my agent server and it has always worked for me. none of the NAT ports should be blocked by your isp, they are not very common in torenting or hosting.
Quote:
<?xml version="1.0" encoding="euc-kr"?>
<XML>
<AGENTCONFIG>
<NAME>Should match whats in Match-Server</NAME>
<MAXCLIENT>Should match whats in Match-Server</MAXCLIENT>
<MATCHSERVERADDRESS ip="127.0.0.1" tcpport="6000"/>
<ADDRESS ip="Your IP" tcpport="7777" udpport="5100"/>
</AGENTCONFIG>
</XML>
Re: NAT 999 ping only after finishing a game
Quote:
Originally Posted by
Nayr438
This is from my agent server and it has always worked for me. none of the NAT ports should be blocked by your isp, they are not very common in torenting or hosting.
This match agent config is exactly what I have.
I didn't mean that my ISP was blocking the ports, I'm thinking it's a double NAT.
Do you know if it possible to host a gunz server on AWS for free? What's the best free solution to hosting a gunz server?
Re: NAT 999 ping only after finishing a game
Server.ini
MONITORIP="127.0.0.1" <-- for some reason it does not detect the "from the end and it comes out in the form of 127.0.0.1
toMONITORIP="127.0.0.1 <-- in this way if he accepts the ip and shows the 255.255.255.255
if it works, something like that should come out
[Fri Feb 9 16:56:03 2018] Keeper IP : (127.0.0.1)
[Fri Feb 9 16:56:03 2018] Monitor IP : (255.255.255.255) --> no (127.0.0.1) OR THE IP THAT YOU PLACED
that one of the first errors the second is the communication of the MatchAgent and the MatchServer.
You do not know when neither of them are connected.
MatchAgent
[Tue Oct 24 22:24:15 2017] GARBAGE SESSION CLEANING : ClientCount=0, StageCount=0, SessionCount=1, Comm
MatchServer
[Fri Feb 9 16:56:04 2018] Agent Added (UID:010)[Fri Feb 9 16:56:04 2018] Agent Registered (CommUID 0:10) IP:127.0.0.1, TCPPort:7777, UDPPort:5100
if this comes out when you open the two programs everything is fine, but if you leave that they do not connect to each other you have to collect the MatchAgent and MatchServer, that's because they do not have compatible with each other.
Re: NAT 999 ping only after finishing a game
Still NAT on second game.
A couple things to mention.
Sometimes I have NAT but no 999 ping and can still play normally. However, the game after that will always be 999 ping NAT.
I'm using pre-compiled server files because I can't get VS2003 to work on Windows 10 and I don't know how to port to 2012. I've already ported gunz.exe to VS2012.
I'm running the server and playing on the same PC while testing with my laptop on the same network. Not sure if there's potential for issues there.
I'm not completely confident in my database settings. In dbo.ServerStatus and dbo.LocatorStatus I have my wan ip for the ip. locatorstatus = port 8900, serverstatus = port 6000. Anything else I need to verify in the database?
My config with your recommendations:
match server:
Code:
[SERVER]
MAXUSER=100
SERVERID=1
SERVERNAME="name"
SERVERPORT=6000
SERVERUDPPORT=7777
FREELOGINIP="127.0.0.1"
KEEPERIP="127.0.0.1"
DEBUGIP="127.0.0.1"
MONITORIP="127.0.0.1
MONITORPORT=9000
DEBUG="1"
MODE=Quest
COUNTRY="KOR"
LANGUAGE="KOR"
USETICKET="0"
GAMEGUARD="1"
locator:
Code:
[NETWORK]
IP="wan"
PORT="8900"
[ENV]
ID="1"
LOCATOR_UID_HIGH="5"
LOCATOR_UID_LOW="0"
MAX_ELAPSED_UPDATE_SERVER_STATUS_TIME="1000"
UDP_LIVE_TIME="10000000"
MAX_FREE_RECV_COUNT_PER_LIVE_TIME="9"
BLOCK_TIME="0"
UPDATE_UDP_MANAGER_ELAPSED_TIME="3"
MARGIN_OF_ERROR_MIN="500000"
USE_COUNTRY_CODE_FILTER="no"
ELAPSED_TIME_UPDATE_LOCATOR_LOG="3600000"
ACCEPT_INVALID_IP="1"
TEST_SERVER="0"
agent:
Code:
<?xml version="1.0" encoding="euc-kr"?>
<XML>
<AGENTCONFIG>
<NAME>name</NAME>
<MAXCLIENT>100</MAXCLIENT>
<MATCHSERVERADDRESS ip="127.0.0.1" tcpport="6000"/>
<ADDRESS ip="wan" tcpport="7777" udpport="5100"/>
</AGENTCONFIG>
</XML>
match server log:
Code:
[02/14/18 17:36:37] DBMS connected
[02/14/18 17:36:37] Command registeration completed
[02/14/18 17:36:38] Release Date : May 22 2017
[02/14/18 17:36:38] X-Trap Off
[02/14/18 17:36:38] MD5 Check Off
[02/14/18 17:36:38] Loop Log Save Off
[02/14/18 17:36:38] Server Country : KOREA
[02/14/18 17:36:38] Command version : (58)
[02/14/18 17:36:38] Event usable state : (true)
[02/14/18 17:36:38] Load event size : (0)
[02/14/18 17:36:38] FileCRCCheckSum usable state : (false)
[02/14/18 17:36:38] FileCRC size : (0)
[02/14/18 17:36:38] Country Code Filter usalbe state : (false)
[02/14/18 17:36:38] Accept Invalied IP state : (true)
[02/14/18 17:36:38] Keeper IP : (127.0.0.1)
[02/14/18 17:36:38] Monitor IP : (255.255.255.255)
[02/14/18 17:36:38] Ticket use : 0
[02/14/18 17:36:38] Match Server Created (Port:6000)
[02/14/18 17:36:56] Start agent Register (CommUID 0:10) IP:wan, TCPPort:7777, UDPPort:5100
[02/14/18 17:36:56] Agent Added (UID:010)
[02/14/18 17:36:56] Agent Registered (CommUID 0:10) IP:wan, TCPPort:7777, UDPPort:5100
[02/14/18 17:39:38] GARBAGE SESSION CLEANING : m_This(02), ClientCount=2, SessionCount=3, AgentCount=1, CommandPool=13, objHistoryCount=4
[02/14/18 17:42:38] GARBAGE SESSION CLEANING : m_This(02), ClientCount=0, SessionCount=1, AgentCount=1, CommandPool=14, objHistoryCount=4
agent log:
Code:
[02/14/18 17:36:56] Command registeration completed
[02/14/18 17:36:56] Release Date : Dec 23 2012
[02/14/18 17:36:56] Match Agent Created (Port:7777)
[02/14/18 17:36:56] Request Connect to matchserver ip(127.0.0.1), port(6000).
[02/14/18 17:39:56] GARBAGE SESSION CLEANING : ClientCount=2, StageCount=1, SessionCount=1, CommandPool=4
[02/14/18 17:42:56] GARBAGE SESSION CLEANING : ClientCount=0, StageCount=1, SessionCount=1, CommandPool=4
[02/14/18 17:45:56] GARBAGE SESSION CLEANING : ClientCount=0, StageCount=1, SessionCount=1, CommandPool=4
Re: NAT 999 ping only after finishing a game
if you want I can help you is a simple in fact, that is for sure you do not have everything copied with the same data, in the tutorials part is a post how to update vs 2012-2013 but also works in vs2015 there is only include a few lib, so that the d3dx9 does not crash