Cant recive goldsrc servers

Sep 23, 2015 at 4: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);

            Console.ReadLine();
        }

        static void recv(IReadOnlyCollection<IPEndPoint> endpoints)
        {
            foreach (IPEndPoint i in endpoints)
            {
                if (i.Address.ToString() != "0.0.0.0")
                    Console.WriteLine(i);
            }
        }
    }
}
Sep 25, 2015 at 8: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.
Coordinator
Oct 2, 2015 at 6:27 PM
Edited Oct 2, 2015 at 6: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.