Thread: Sven Co-op server may not be binding to open ports

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Sep 2017
    Location
    Washington, USA
    Posts
    4

    Sven Co-op server may not be binding to open ports

    Hello, my friends and I have had a really hard time trying to host a temp server; only one out of three of us can, unreliably, host a server over internet. I my self have attempted to host, with 0 success! I've tried listen & dedicated, different ports, rebooting (both computer and router), and reinstalling. I have successfully hosted temp servers for Minecraft, Unturned, Synergy, DMP for KSP, Tabletop Sim, CS:Source, etc. I have most recently checked if my ports are in fact opening with Minecraft successfully. I can connect through both LAN and the feedback loop. I am currently running Sven 5.14 on Win10.
    Is it a bug? Am I just an idiot? Thanks in advance.

  2. #2
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,423

    Re: Sven Co-op server may not be binding to open ports

    Does your computer have multiple IP addresses?

    I'd use either the "netstat" command or Process Explorer to see what ports SvenDS is listening on. (Look for "svencoop.exe" or "svends.exe". If you're using Process Explorer open the process details and check the TCP/IP tab for any listening connections.)
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  3. #3
    Registered User
    Join Date
    Sep 2017
    Location
    Washington, USA
    Posts
    4

    Re: Sven Co-op server may not be binding to open ports

    Quote Originally Posted by AdamR View Post
    Does your computer have multiple IP addresses?
    I assume not, I have a static local IP address if that's what you are talking about.

    Quote Originally Posted by AdamR View Post
    I'd use either the "netstat" command or Process Explorer to see what ports SvenDS is listening on. (Look for "svencoop.exe" or "svends.exe". If you're using Process Explorer open the process details and check the TCP/IP tab for any listening connections.)
    I'll give it a shot tomorrow and report back, thanks.

  4. #4
    Registered User
    Join Date
    Mar 2012
    Posts
    510

    Re: Sven Co-op server may not be binding to open ports

    Have you explicitly opened the ports in Windows Firewall? Just allowing the application isn't enough, usually you have to open 27015/27016 on the UDP protocol.

    Sven Coop's dedicated server also has a weird bug where it can't bind to the machines IP address properly. If I don't specify the IP address of the local machine on the command line with +ip, svends will bind to weird random IP addresses (in my case, its the 198.xxx.xxx.xxx range), which isn't even close to my internal network or WAN IP address range. Its happen to me on both Windows and Linux.

  5. #5
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,423

    Re: Sven Co-op server may not be binding to open ports

    Quote Originally Posted by GiGaBiTe View Post
    Sven Coop's dedicated server also has a weird bug where it can't bind to the machines IP address properly. If I don't specify the IP address of the local machine on the command line with +ip, svends will bind to weird random IP addresses (in my case, its the 198.xxx.xxx.xxx range), which isn't even close to my internal network or WAN IP address range. Its happen to me on both Windows and Linux.
    We only ask the host system for this information. (The engine doesn't try to determine this itself.) Multiple NICs, both physical and virtual, will influence this. On Windows the metric of each NIC is used to determine its priority, with the lowest metric being the winning one. Not sure what 198 is for though if it's special purpose. (Teredo or 6in4 maybe?)
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  6. #6
    Registered User
    Join Date
    Mar 2012
    Posts
    510

    Re: Sven Co-op server may not be binding to open ports

    I don't use those technologies so I don't know where the IP range comes from. I just know it's only a problem with svends, no other Goldsrc game has the problem.

  7. #7
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,423

    Re: Sven Co-op server may not be binding to open ports

    Teredo is part of Windows since XP SP2 by default, unless you explicitly remove it. What was the full 198.. IP address SvenDS was binding to?
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  8. #8
    Registered User
    Join Date
    Mar 2012
    Posts
    510

    Re: Sven Co-op server may not be binding to open ports

    My server is Linux, not Windows.

    The IP it binds to is 198.105.254.11

  9. #9
    Registered User
    Join Date
    Sep 2017
    Location
    Washington, USA
    Posts
    4

    Re: Sven Co-op server may not be binding to open ports

    Sorry for the late response, apparently tomorrow means "2 days from now" now... I just tried hosting and some random player joined in the middle messing with some open port checkers. Restarting seems to have unbound svends.exe from the ports it just listened and established connection over. process explorer says that svends.exe is listening on 25564 (I set it that way for some reason), but nothing on the other side of my router says that the port is open and there is a service behind it to ping.
    IMMEDIATE update: apparently random people can connect again... but nothing can detect that the ports are open. I have no idea what is happening.

  10. #10
    Registered User
    Join Date
    Mar 2012
    Posts
    510

    Re: Sven Co-op server may not be binding to open ports

    svends.exe bound to 25564 when I didn't specify an IP address or port.

    I can fix your server remotely via Teamviewer if you want, I'm pretty sure I know what's going on.

  11. #11
    Registered User
    Join Date
    Sep 2017
    Location
    Washington, USA
    Posts
    4

    Re: Sven Co-op server may not be binding to open ports

    Quote Originally Posted by GiGaBiTe View Post
    svends.exe bound to 25564 when I didn't specify an IP address or port.
    What? I specified the port as 25564, the default is 27015. The server does seem to work reliably now, no idea what I am doing differently; however, I found that it will not show up on the localhost's server browser under internet or LAN but will under history, but that's a different topic. Thanks for your support!

  12. #12
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,423

    Re: Sven Co-op server may not be binding to open ports

    FYI port scanners will mostly not detect GoldSrc servers because they only scan TCP. UDP is stateless, so you need to use a port scanner that can specifically do that.

    If you have access to a machine outside of your home network you could use Nmap (for Windows and Linux) to do this, otherwise go to Nmap On-line and do it there.

    Options I'd use are:

    Code:
    -p 25564 -sS -sU -T4 -A -v your-public-ip-address
    I did this on my home server's SvenDS and got:

    Code:
    Starting Nmap 6.47 ( http://nmap.org ) at 2017-09-09 09:35 Coordinated Universal Time
    NSE: Loaded 104 scripts for scanning.
    NSE: Script Pre-scanning.
    Initiating Ping Scan at 09:35
    Scanning 88.97.144.81 [4 ports]
    Completed Ping Scan at 09:35, 0.92s elapsed (1 total hosts)
    Initiating Parallel DNS resolution of 1 host. at 09:35
    Completed Parallel DNS resolution of 1 host. at 09:35, 0.03s elapsed
    Initiating SYN Stealth Scan at 09:35
    Scanning server-p1.reece-eu.net (88.97.144.81) [1 port]
    Completed SYN Stealth Scan at 09:35, 0.48s elapsed (1 total ports)
    Initiating UDP Scan at 09:35
    Scanning server-p1.reece-eu.net (88.97.144.81) [1 port]
    Completed UDP Scan at 09:35, 0.47s elapsed (1 total ports)
    Initiating Service scan at 09:35
    Scanning 1 service on server-p1.reece-eu.net (88.97.144.81)
    Completed Service scan at 09:36, 82.63s elapsed (1 service on 1 host)
    Initiating OS detection (try #1) against server-p1.reece-eu.net (88.97.144.81)
    Retrying OS detection (try #2) against server-p1.reece-eu.net (88.97.144.81)
    Initiating Traceroute at 09:36
    Completed Traceroute at 09:36, 3.08s elapsed
    Initiating Parallel DNS resolution of 10 hosts. at 09:36
    Completed Parallel DNS resolution of 10 hosts. at 09:36, 0.37s elapsed
    NSE: Script scanning 88.97.144.81.
    Initiating NSE at 09:36
    Completed NSE at 09:37, 30.05s elapsed
    Nmap scan report for server-p1.reece-eu.net (88.97.144.81)
    Host is up (0.042s latency).
    PORT STATE SERVICE VERSION
    27015/tcp filtered unknown
    27015/udp open|filtered halflife
    Too many fingerprints match this host to give specific OS details
    Network Distance: 12 hops
     
    TRACEROUTE (using proto 1/icmp)
    HOP RTT ADDRESS
    1 0.00 ms unasigned-62-87-46-37.hosting90.net (37.46.87.62)
    2 ...
    3 0.00 ms br-t-5920t1.ispalliance.cz (185.52.172.109)
    4 0.00 ms ispalliance.supernetwork.cz (88.86.97.129)
    5 0.00 ms ae0-406.prg10.core-backbone.com (80.255.14.49)
    6 15.00 ms ae6-2077.lon10.core-backbone.com (5.56.18.2)
    7 15.00 ms linx-1.zen.net.uk (195.66.224.158)
    8 31.00 ms ge-2-0-0-0.cr1.th-lon.zen.net.uk (62.3.80.41)
    9 31.00 ms ae4-0.cr1.wh-man.zen.net.uk (62.3.80.46)
    10 31.00 ms v118.subs.dsl4.wh-man.zen.net.uk (62.3.86.2)
    11 ...
    12 32.00 ms server-p1.reece-eu.net (88.97.144.81)
     
    NSE: Script Post-scanning.
    Read data files from: C:\ProgInst\odt\Nmap\www\free
    OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
    Nmap done: 1 IP address (1 host up) scanned in 129.88 seconds
    Raw packets sent: 67 (5.656KB) | Rcvd: 52 (4.313KB)
    This bit just before the traceroute shows my SvenDS is world accessible:

    Code:
    PORT STATE SERVICE VERSION
    27015/tcp filtered unknown
    27015/udp open|filtered halflife
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  13. #13
    Registered User
    Join Date
    Mar 2012
    Posts
    510

    Re: Sven Co-op server may not be binding to open ports

    I think I figured out why svends.exe is grabbing the IP 198.105.254.11 when it's not explicitly given one:

    https://news.ycombinator.com/item?id=10016048

    L3 is doing DNS scumbaggery to redirect unresolvable domains if you use their DNS servers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •