how do i use servers?

Started by Faceless · 2 months ago · 1 reply · 61 views

This thread has been marked as solved
Resolved by Faceless · 2 months ago
#1
Faceless
Member
JoinedJul 2026 Posts2 Score0
Hi
im trying to find a way to connect a user to a dedicated server but i cant find anything plus AI dont know anything either so im here 😅

this is what i got from AI for this but i dont think its correct at all

public class ServerBrowser : Component
{
        private ServerList _serverList;
        public List<ServerList.Entry> Servers { get; private set; } = new();

         public void Refresh()
         {
                  _serverList?.Dispose();
                  _serverList = new ServerList();

                  _serverList.AddFilter( "gametag", "trustlastisland" );
                  _serverList.Query();

                  Servers = _serverList.ToList();
         }
}

i just want to know how can i connect to a s&box dedicated server in my game.
#2
Faceless
Member
JoinedJul 2026 Posts2 Score0
found it my self
 
Networking.Connect( "192.168.1.1:27015" );
 
check_circle Faceless marked this thread as solved 2 months ago
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.