Cannot connect to games via WAN

Avatar
  • Views 9,795
  • updated
  • Completed - Resolved

I am using Steam version of the game. 

Game build:1.6.66f3

OS: Windows 10 professional (64bit)

RAM: 16 gb

CPU: i7-7700k @4.2ghz

GPU: GTX 1080

When attempting to host game, error displays "The ports 27015 and 27016 are closed" I have covered the port forwarding sections of the forum. I have my machine in the DMZ so all ports should be forwarded. Just to cover all bases, these ports have also been manually forwarded. I have tested this on my mates PC and he has followed the same instructions and the same issue occurs. When direct connecting error reports: Connection Error. Connecting to the server failed!

When attempting to connect via LAN the game works fine. 


Unsure how to proceed as the ports should all be forwarded however the game detects them as closed. In have other example games that work fine such as Killing Floor 2, which needed the machine to be in the DMZ/port forwarded to host online games. This has been tested and is working.


Please assist. Happy to provide further info. the log examples on your main bug-tracker page didn't seem pertinent as there is no crash or report being generated. 

Game Version:
Steam Public
Platform:
Windows
Avatar
Captaincandle

Output log file Attached just to cover all bases. this error occurred in the last play session.

Avatar
anonymous
  • Pending Customer

Can you please try to disable all other network adapters in Windows and then try. Things like Hamachi can cause issues.


Please also try without firewalls and ensure that you are using the Public IP address shown in the lobby. 


If the above doesnt work then remove the device from the DMZ and disable UpNp. Then remove and re-add the port forwards.

Avatar
Captaincandle

Hi Cian, 


Thanks for getting back so quick, genuinely impressed. I have tried all the above options and the game will not detect the ports as open. In the final step, UPnP is disabled and no DMZ, just the port triggering setup (external port is the same right?), with no success. I also disable my second network adapter (I have two ports, no custom adapters) with same result. Finally, disabling all firewalls (I don't run one but disabled my anti-virus) had no success either. This one has me stumped.

Avatar
Captaincandle

To clarify, my router has no firewall options turned on either during this testing. It's just a basic router firewall (blacklist/whitelist) anyway and isn't setup. Just wanted to be thorough

Avatar
Lee "Noontide" Moon Designer & Community Manager

Hi Captaincandle,


Can you send through a screenshot of the configuration for your port forwarding on the router. Honestly I'm not sure what could be causing this either though ULink can sometimes throw a wobbly due to unusual cases, unfortunately without knowing much about the network we're dealing with it's also very difficult to advise.


Just to clarify as well when you're attempting to connect via WAN is this the internet as your medium or some form of privately owned and operated WAN (i.e. between two LANs owned by a single company using wireless?).


When you're receiving the Port Forwarding error message on hosting a game have you actually tried hosting the game and have your friend connect? It is possible that the PF check is not communicating properly with your PC for some reason.


Cheers,


Lee

Avatar
Captaincandle

Hi Lee,


Absolutely: Port setup.png


I'm using the Internet as the medium, no private WAN setup.


The setup is PC -> Dumb switch -> Router -> Internet. Nothing custom in that setup, the switch just routes traffic, router is only setup to connect to the internet. no other setting other than static IP to my machine (which is usually in the DMZ, but turned that off form our testing). 


I have tried hosting and have my friend join to no avail. That was the original test, and what I have used in all testing. I continue to get the error message notice in the host screen stating the ports aren't forwarded.


Please hit me up for any info you need.

Avatar
Lee "Noontide" Moon Designer & Community Manager

Hi Captaincandle,


I think it's likely that the issue here is the setup has been configured as port triggering as opposed to a virtual server. The problem with Port Triggering is that it requires a client (your PC) to make an outgoing connection on those ports before the router forwards those ports to the client. This means that if your PC does not make an outgoing connection on those ports the router never forwards the ports to your PC. It also means that if another client makes an outgoing connection on those ports they get the forwarding instead.


I'm not an expert on the intricacies of how ULink is working, or how we communicate with the Steam master server but as I understand it there shouldn't be any outgoing traffic on those ports, as a result the forwarding is never established.


Instead you should setup your port forwarding as a virtual server pointing directly to the local IP of the PC that you want to act as the host. This should ensure that the traffic always goes to that PC rather than waiting for the PC to establish an outgoing connection on that port.


Give that a go and let me know how you get on. :)


Cheers,


Lee

Avatar
Captaincandle

Hi Lee,


Just set it up as such, is this correct? Never setup port forwarding as a virtual server before. It still asks for an external port.


Port setup 2.png

Avatar
Lee "Noontide" Moon Designer & Community Manager
Quote from Captaincandle

Hi Lee,


Just set it up as such, is this correct? Never setup port forwarding as a virtual server before. It still asks for an external port.


Port setup 2.png

This looks correct. Virtual Servers is essentially what is conventionally known as port forwarding. It'll ask for an external port as it needs to know what to listen to, any traffic that reaches the router with that port ID will automatically be forwarded to the Interal port on the client IP Address you set. Provided there's a service listening on that port :)


So basically. IP Packet reaches router > router reads the port ID > If port ID is in the forwarding table (virtual servers) > forward to chosen internal IP with the chosen internal port. 


So when your friend tries to connect now as long as something is listening on that port (in this case WFTO) data should come through from your router to your PC. Whenever you're asked to port forward by an application (Usually for hosting game servers these days) you'd usually use this setup.

Avatar
Captaincandle

Fantastic Lee, that is an awesome explanation. Much better idea than I had before. You can tell my network game is really limited.


It is 01:45 here in Australia so I will need to wait until at least tomorrow night to try again. I will update you as soon as I know.


Have an awesome day today.


-Scott