When an Advantage client connects to the server it goes through a series of steps to discover the Advantage server. These steps are generally executed very quickly and the server is found and a connection is made. However, if you get the dreaded 6420 or 6060 error you have to start troubleshooting a connection issue.
I wrote an article on troubleshooting Advantage connection issues which details the discovery process. However, the discovery process can be avoided by changing your connection string or by specifying details in the ADS.INI file. By specifying a port number in the connection string the Advantage communication layer will not try to discover the server instead it will attempt direct communication to the specified server on the specified port. The following data paths would make a direct connection to Advantage without any discovery.
You can also make a direct connection to an Advantage server by specifying the LAN_IP and LAN_Port in the ADS.INI file. You specify these settings under a heading which specifies the server name associated with the IP address. When the client connects it will check for the server name specified in the connection string with the headings in the ADS.INI file. For example an entry for MyServer is specified in the ADS.INI file (see syntax below) so the connection string \\MyServer\Data\MyDictionary.add will become \\192.168.0.10:6262\Data\MyDictionary.add.
LAN_IP = 192.168.0.10
LAN_PORT = 6262
If a connection to the server fails using this information different error codes will be returned. If the IP address cannot be reached a 6097 error will be returned.