Home | Previous Page | Next Page   The Database Server > Client/Server Communications > Examples of Client/Server Configurations >

Using a Local-Loopback Connection

Figure 11 shows a local-loopback connection that uses sockets and TCP/IP. The name of the host computer is river.

Figure 11. Local-Loopback Connection
begin figure description - This  figure  shows a client application and a database server named river_soc that are connected through a TCP/IP programming interface. - end figure description

The following table shows the correct entry for the sqlhosts file or SQLHOSTS registry key for the connection shown above in Figure 11.

Table 12. sqlhosts entry
dbservername nettype hostname servicename
river_soc onsoctcp river riverol

If the network connection uses TLI instead of sockets, only the nettype entry in this example changes. In that case, the nettype entry is ontlitcp instead of onsoctcp.

The ONCONFIG file includes the following line:

DBSERVERNAME river_soc

This example assumes that an entry for river is in the hosts file and an entry for riverol is in the services file.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]