INET/inet_error: select in packet_receive errno = 10038
Please note that 10038 is not a Firebird error code, but rather one of network (TCP/IP) layer.
There are some known cases when this happens:
1. Windows RAS bug that disabled the
entire range of IP addresses. Fix available from Microsoft:
2. Some AdWare tools and firewall software install network monitors that can keep working even if you remove them later. There is a small utility that cleans this up: