My friend cant connect to my dedicated s Created 7 years ago2017-01-29 15:29:24 UTC by REBELVODKA REBELVODKA

Created 7 years ago2017-01-29 15:29:24 UTC by REBELVODKA REBELVODKA

Posted 7 years ago2017-01-29 15:29:24 UTC Post #333222
I made a dedicated server, me I can connect without any problem, but when my frien try it, "Unable to contact game server"(traslated from spanish).
I gone here : http://www.cualesmiip.com/ but dont work :(
REBELVODKA REBELVODKASemper fidelis
Posted 7 years ago2017-01-29 17:21:58 UTC Post #333224
If you're running it in your own computer, that's exactly the reason why you can connect. Because the connection does not leave the computer.

You must be behind a router. You have to configure port forwarding in your router settings so that it directs incoming connections to your computer.

Go here: https://portforward.com/ports.htm
Select either Half-Life or HL/Source or whatever game you're trying to host, then your router, and follow the instructions there.
Posted 7 years ago2017-01-29 18:20:51 UTC Post #333227
Another thing worth a note: make sure you give to your friend your EXTERNAL IP address. If you were giving him your INTERNAL one (localhost, 127.0.0.1, 192.168.X.X), then you were doing it wrong.

This is why your friend can't join your game through Steam ("Join Game" function), remember, internal IP addresses is for yourself and other PCs in the same network as you. For the rest, it's external.
Posted 7 years ago2017-01-29 18:39:47 UTC Post #333229
I was never able to host a game with Steam HL (and its family) no matter what settings I used. Tried the most obscure network settings with no luck. Anything Steam seems to refuse to connect to local servers.
Posted 7 years ago2017-01-29 23:19:52 UTC Post #333238
Here's a mini guide for hosting a listen server (might be more convenient than using SteamCMD to host a dedicated one).
  • Assuming the server's firewalls and anti-virus are allowing "hl.exe".
  • Assuming the server's opened the TCP and UDP ports on 27015 (NAT settings).
Server:
1) Open Half-Life (or a mod) with the console.
2) "maxplayers X" where X is the number of players.
3) "sv_lan X" where X is a boolean variable (0 = Internet, 1 = LAN).
4) "ip XXX.XXX.XXX.XXX" where "XXX.XXX.XXX.XXX" is your EXTERNAL IP address for Internet games, INTERNAL for LAN games. The external one can be obtained by websites such as "What Is My IP Address".
5) "map X" where X is the map you wish to play.

Clients:
1) Open Half-Life (or a mod) with the console.
2) Only if the server is password protected (aka "sv_password" has been set): "password X" where X is the password.
3) "connect XXX.XXX.XXX.XXX" where "XXX.XXX.XXX.XXX" is the server's EXTERNAL IP address for Internet or INTERNAL for LAN.

If the server uses another port than 27015, the server will have to type "port X" before the "map" command to update the port. Clients will have to use "connect XXX.XXX.XXX.XXX:YYYY" where YYYY is the newly defined server's port.
Posted 7 years ago2017-01-30 02:29:33 UTC Post #333241
Can a mod make the above post sticky or something?
Posted 7 years ago2017-01-30 07:17:05 UTC Post #333242
If you have a router then you need to open the port used by HL which is 27015... windows firewalls and other crap might prevent it too, not sure... i still dont understand networking well enough. I used to think that some internet providers just dont allow hosting servers but im probably wrong.
Posted 7 years ago2017-02-19 14:40:17 UTC Post #333628
I'm having the same issue where my server can't be seen outside the network. I'm running HLDS as installed through steamCMD.

1. I disabled Windows firewall
2. I opened up the 27015 UDP/TCP ports in the router
3. I manually set/checked ipaddress as my external, sv_lan 0

I downloaded the packet analyzer, Wireshark, and I can see the SteamQueries coming in and my machine responding with the server info, but it never shows up on the server list, nor is it able to be manually connected/searched from outside the network when I put my external address in "add a server".

Also everytime I tried to manually connect/search my server from outside the network, I can see the SteamQuery packet come in. There are also SteamQueries that come in from random IP addresses, so I assume these are the people clicking "refresh" on the internet game list.

So the steam master server is apparently acknowledging the existence of my server, as I keep getting SteamQueries, but something doesn't follow through. It seems the only two possibilities are that either these clients that are doing the querying are unable to receive my SteamQuery response, or that they do not like something in my SteamQuery response.

Thoughts?
Posted 7 years ago2017-02-19 14:49:08 UTC Post #333629
can you connect through the "connect ip:port" console command?
You must be logged in to post a response.