This project is read-only.

Cant recive goldsrc servers

Sep 23, 2015 at 5:58 PM
Im trying to get list of goldsrc servers and i dont get anything. Does anyone have any suggestions what to do?

This is the code im trying to use:
using System;
using System.Collections.Generic;
using System.Net;
using QueryMaster;

namespace toast
    class Program
        static void Main(string[] args)
            MasterServer server = QueryMaster.MasterQuery.GetMasterServerInstance(QueryMaster.EngineType.GoldSource);
            server.GetAddresses(Region.Europe, recv);


        static void recv(IReadOnlyCollection<IPEndPoint> endpoints)
            foreach (IPEndPoint i in endpoints)
                if (i.Address.ToString() != "")
Sep 25, 2015 at 9:38 AM
Try it with Region.Rest_of_the_World
Valve has deprecated the use of "Region" and returns everything when using "Rest_of_the_World", with closely located servers first (based on Geo-IP).
I'm working with a different version of the library and have to specify an "IpFilter" object for GetAddresses. Using AppId 0 would return all games.
Oct 2, 2015 at 7:27 PM
Edited Oct 2, 2015 at 7:28 PM
hi TopKek,

It seems Gold Source master server is not replying to any request.
Luckily Source Master Server also works for Gold Source Games.

Check out the latest release.Try it on the sample application(Source Code included).
Choose Source EndPoint instead of GoldSource.