community.borland.com

Article #25544: A possible solution for 'getservbyname failed, error code = 11004'

Problem:
I am getting this error in my log file:
INET/INET_connect: getservbyname failed, error code = 11004 
What does it mean?  How can I make it stop?			

Solution:
Note:This information will work with all InterBase versions.

This error generally occurs when you do not have the following entry defined
correctly in your services file:

gds_db         3050/tcp

This says that the service called gds_db expects to use port 3050 and the "tcp" protocol.
If this entry is missing, you can get the "getservbyname" error message.

The services file will be in the etc directory on an UNIX machine.  On windows NT 
systems, the services file is defined to be in this directory by default :

C:WINNTSYSTEM32driversetc

Under Windows95, the services file will be in the windows directory.
This is defined as c:windows by default.   It is a text file that can be editted with
any text editor you feel comfortable with.  Both the client and server machine need to have
this entry in its own services file.

Also check and ensure that the client can ping the server by name not just by
ip address.

Last Modified: 26-OCT-00