MantisBT - Zandronum
View Issue Details
0002928Zandronum[All Projects] Bugpublic2016-11-20 15:182018-09-30 22:34
masos 
Torr Samaho 
highmajoralways
closedno change required 
WindowsWindows 101607
2.1 
 
0002928: Doesn't work over internet
Zandronum won't listen ports on internet. My port is 10666, people can connect to my server when it's on zandronum 2.0, but on 3.0 they just are connecting indefinitely. Port forward is okay and configured. Also, zandronum shows my local network IP on the bottom of the window (192.168.xxx.zzz), but not my internet IP. When I tried to use forceIP (-useip aaa.bbb.ccc.ddd), it just showed that it cannod bind to that IP and reverts back to local network IP.
Just start the server.
Server also doesn't appear on server list no matter how I configure it.
Open ports checked with PF Network Utilities, ports are successfully opened.
No tags attached.
child of 0000992feedback Torr Samaho Master server code makes incorrect assumptions about the source port of updates. 
log log3_0.log (13,328) 2016-11-21 12:39
https://zandronum.com/tracker/file_download.php?file_id=1966&type=bug
log log2_1_2.log (16,548) 2016-11-21 12:43
https://zandronum.com/tracker/file_download.php?file_id=1967&type=bug
png Безымянный.png (66,123) 2016-11-21 12:54
https://zandronum.com/tracker/file_download.php?file_id=1968&type=bug
png
Issue History
2016-11-20 15:18masosNew Issue
2016-11-20 20:35Torr SamahoNote Added: 0016223
2016-11-20 21:07masosNote Added: 0016226
2016-11-20 21:13Torr SamahoNote Added: 0016227
2016-11-21 12:39masosFile Added: log3_0.log
2016-11-21 12:43masosFile Added: log2_1_2.log
2016-11-21 12:48masosNote Added: 0016246
2016-11-21 12:54masosFile Added: Безымянный.png
2016-11-21 12:55masosNote Edited: 0016246bug_revision_view_page.php?bugnote_id=16246#r9881
2016-11-21 12:55masosNote Edited: 0016246bug_revision_view_page.php?bugnote_id=16246#r9882
2016-11-21 12:57masosNote Edited: 0016246bug_revision_view_page.php?bugnote_id=16246#r9883
2016-11-21 19:07Torr SamahoProduct Version3.0-beta => 2.1
2016-11-21 19:07Torr SamahoNote Added: 0016260
2016-11-21 19:12Torr SamahoAssigned To => Torr Samaho
2016-11-21 19:12Torr SamahoStatusnew => feedback
2016-11-21 19:17masosNote Added: 0016261
2016-11-21 19:17masosStatusfeedback => assigned
2016-11-21 19:40Torr SamahoNote Added: 0016264
2016-11-21 19:45masosNote Added: 0016266
2016-11-21 20:53Torr SamahoNote Added: 0016267
2016-11-21 20:56masosNote Added: 0016268
2016-11-21 21:00Torr SamahoNote Added: 0016269
2016-11-21 21:04masosNote Added: 0016270
2016-11-21 21:09Torr SamahoNote Added: 0016271
2016-11-21 21:11Torr SamahoRelationship addedchild of 0000992
2016-11-21 21:12Torr SamahoNote Edited: 0016271bug_revision_view_page.php?bugnote_id=16271#r9892
2016-11-21 21:30masosNote Added: 0016272
2016-11-21 21:35Torr SamahoNote Added: 0016273
2016-11-21 21:38masosNote Added: 0016274
2016-11-21 21:39masosNote Edited: 0016274bug_revision_view_page.php?bugnote_id=16274#r9894
2016-11-21 21:40Torr SamahoNote Added: 0016275
2016-11-21 21:47masosNote Added: 0016276
2016-11-21 21:57masosNote Added: 0016277
2016-11-22 07:02Torr SamahoNote Added: 0016282
2016-11-22 14:12masosNote Added: 0016287
2016-11-22 19:25Torr SamahoNote Added: 0016288
2016-11-22 19:26Torr SamahoStatusassigned => resolved
2016-11-22 19:26Torr SamahoResolutionopen => no change required
2018-09-30 22:34Blzut3Statusresolved => closed

Notes
(0016223)
Torr Samaho   
2016-11-20 20:35   
It's normal that your server uses the local IP since that is the IP of your network adapter. "-useip" can only select IPs of network adapters in your machine. Your router has to be configured to forward incoming packets to your server, the same applies to 2.0 and 3.0 though.

So you are saying that 2.0 (do you mean 2.1.2?) works on your machine, but 3.0 does not? And you are not changing anything except the Zandronum binary?
(0016226)
masos   
2016-11-20 21:07   
Yeah, sorry, not 2.0, 2.1.2. 2.1.2 works fine, but 3.0 does not. I don't change anything except Zandronum versions. Like I said in issue description, I already did a port forward on my router. If I wouldn't, people wouldn't be able to connect to me when I was on 2.1.2, right?
(0016227)
Torr Samaho   
2016-11-20 21:13   
Right.

Can you start both the 2.1.2 and the 3.0 server (one after another, not both at once) with "+logfile log" and upload the log files that will be written with this option?
(0016246)
masos   
2016-11-21 12:48   
(edited on: 2016-11-21 12:57)
Uploaded.
For some reason now 2.1.2 doesn't work too. What could be changed if I didn't change anything myself? Also, I tried mapping other apps to same port 10666. Strangely, they worked fine (of course, I did not try to use them at the same time with running the server, because only one app can bind the port). I previously hosted various game servers, and all worked fine too.

UPD: Uploaded router config screenshot to be totally sure.

UPD2: Firewall is turned off so it doesn't interfere.

(0016260)
Torr Samaho   
2016-11-21 19:07   
Is your external IP listed on the master server (possibly as non responding)?
(0016261)
masos   
2016-11-21 19:17   
I can't find it myself, but people on Zandronum IRC say it is listed and yes, as non-responding.
(0016264)
Torr Samaho   
2016-11-21 19:40   
The master server should report the same server list to everybody. If your IP is on it and somebody sees it, you should also see it. With some ISPs, you can't communicate with your own external IP, so your server could be listed as non-responding for you, but as responding for others, but if the IP is on the list, you should see it. Can you double check that it is really not on the list for you?
(0016266)
masos   
2016-11-21 19:45   
Nevermind, found it. So much servers, it's hard to find the one I need especially when it doesn't have a name. So yes, it is on the list, I see it now. But still no response from it.
(0016267)
Torr Samaho   
2016-11-21 20:53   
Ok, then the server -> master server communication works and it likely is a port forwarding / firewall problem. Did you try using UPnP, i.e. starting the server with "-upnp"?
(0016268)
masos   
2016-11-21 20:56   
Like I said, port forwarding works ok with hosting other games' servers and therefore I am pretty sure I can do it. Firewall is off. I tried using -upnp, but it showed me "Failed to use UPnP: NAT device not found" or something like that, don't really remember.
(0016269)
Torr Samaho   
2016-11-21 21:00   
Is the port listed for your server on the master server correct?
(0016270)
masos   
2016-11-21 21:04   
No, it is not. For some reason it shows port 23794. Server window still shows port 10666, though.
(0016271)
Torr Samaho   
2016-11-21 21:09   
(edited on: 2016-11-21 21:12)
Then that is your problem. Zandronum has no control over which external port your router assigns to Zandronum's outgoing UDP connection and the master always uses that port to list the server. You either need to forward that port or force your router to assign the port you want.

EDIT: 0000992 has some more information on this.

(0016272)
masos   
2016-11-21 21:30   
Cannot find that option in my router. Still, I forwarded 23794 and set my server to run also on 23794. Now it at least accepts connections on 23794 even though it doesn't show up in master list correctly.
(0016273)
Torr Samaho   
2016-11-21 21:35   
Quote from masos
even though it doesn't show up in master list correctly.

Can you elaborate? If the entry on the master server list is wrong, nobody will be able to connect to your server.
(0016274)
masos   
2016-11-21 21:38   
(edited on: 2016-11-21 21:39)
I just wanted to play with my friend, and he can connect directly by IP. Master server's not needed for it.

UPD: I'd fix it ASAP if I knew how.

(0016275)
Torr Samaho   
2016-11-21 21:40   
Ah, I see. Thanks for clarifying. So it's working fine for your purposes now?
(0016276)
masos   
2016-11-21 21:47   
Yeah. Broadcasting to master server would be awesome too, but it seems much too complicated to do. I wonder how did it even work before without these tweaks?
(0016277)
masos   
2016-11-21 21:57   
Is there a way to force master server listing port to be the same as my server port? Before this issue started it was done automatically.
(0016282)
Torr Samaho   
2016-11-22 07:02   
Quote from masos
Is there a way to force master server listing port to be the same as my server port?

Currently, not. The master server protocol needs to be extended to make this possible.

Quote from masos
Before this issue started it was done automatically.

If it worked before, then your router assigned the same external port as your internal port. I can't say why your router stopped doing that.
(0016287)
masos   
2016-11-22 14:12   
OK, thanks. You can now mark the issue as resolved.
(0016288)
Torr Samaho   
2016-11-22 19:25   
I'll do. Since 0000992 is still open, adding a port override will stay on the radar.