I am having problems connecting to informix server on a different machine with common .net driver of informix. When I run testconn40_32 it fails with error 08001. What is odd is the host says it's listening on port specified.
The sqlhosts file in host has a line specifying drda connectivity like this:
dr_informix1210 drsoctcp localhost dr_informix1210
I also have a DBSERVERALIASES name specified for that host in onconfig file at the host: DBSERVERALIASES dr_informix1210, lo_informix1210
I've also set all the environment variables including PATH, INFORMIXDIR, INFORMIXSERVER, ONCONFIG and INFORMIXSQLHOSTS.
My services file has a line for that service like this:
dr_informix1210 9089/tcp
I've added a rule to allow connections on that port to the firewall
My hosts file in /etc/hosts also lists the server like this:
127.0.0.1 localhost
and my connection string is the following: Database=sigac_historico;Server=(ip adress:port);UserID=(userid);Password=(password)
So I want to know if I missed any step. I know the error means that somehow drda is not enabled because the host refused the connection. The host runs Ubuntu and my program is made in .NET, running from windows.
I also would mention if I do a telnet to that server it throws an error saying connection can't be opened.
One more question: I see there is a different product by IBM called DB2, ¿is this the only product that supports ADO.NET? Currently I'm trying to connecto to Informix Server
Thanks.
sqlhosts
file is configured to only listen onlocalhost
then the informix intance will not accept connections coming from other servers. – Luís Marques