Hi Paul!
I pass you the result of the netstat -a command.
The name of the IDS service is the one that comes by default (turbo).
In the listing, I see that the Development PC connects to other ports.
In Setnet32 the hostname is declared as Development.
TCP 127.0.0.1:1526 Desarrollo:0 LISTENING
TCP 127.0.0.1:1526 Desarrollo:53497 ESTABLISHED
TCP 127.0.0.1:1526 Desarrollo:53523 ESTABLISHED
TCP 127.0.0.1:1526 Desarrollo:53524 ESTABLISHED
TCP 127.0.0.1:5278 Desarrollo:0 LISTENING
TCP 127.0.0.1:5279 Desarrollo:0 LISTENING
TCP 127.0.0.1:5280 Desarrollo:0 LISTENING
TCP 127.0.0.1:6341 Desarrollo:0 LISTENING
TCP 127.0.0.1:6342 Desarrollo:0 LISTENING
TCP 127.0.0.1:21327 Desarrollo:0 LISTENING
TCP 127.0.0.1:49802 Desarrollo:49803 ESTABLISHED
TCP 127.0.0.1:49803 Desarrollo:49802 ESTABLISHED
TCP 127.0.0.1:53493 Desarrollo:54926 ESTABLISHED
TCP 127.0.0.1:53497 Desarrollo:turbo ESTABLISHED
TCP 127.0.0.1:53523 Desarrollo:turbo ESTABLISHED
TCP 127.0.0.1:53524 Desarrollo:turbo ESTABLISHED
------------------------------
Gustavo Echenique
------------------------------
Original Message:
Sent: Thu February 10, 2022 06:10 PM
From: Paul Watson
Subject: Can someone help me to connect Informix IDS with Spring Boot?
What does desarrollo resolve to ? Remember localhost != desarrollo
If everything is on the same PC and with everything running look at netstat –an to see what ports are bound to the ip and 127.0.0.1
What is in INFORMIXSQLHOSTS and/or setnet32
Original Message:
Sent: 2/10/2022 5:48:00 PM
From: Gustavo Echenique
Subject: RE: Can someone help me to connect Informix IDS with Spring Boot?
Dear Paul, thank you very much for your answer.
I have tried to connect with telnet to the address 127.0.0.1 1526 and it has refused the connection.
Then I tried "telnet localhost 1526" and the connection was also rejected (obviously if it had been rejected with the IP, this was expected).
Only when I entered the PC name "telnet desarrollo 1526" was it able to connect.
However, I have created inbound and outbound firewall rules for this port, but when I try to telnet (with the first two options) it keeps refusing the connection.
If I add the name of the PC (desarrollo) to the Spring project instead of localhost in aplication.properties, it doesn't start Hikari, it hangs, the same if I add the IP address of the machine.
I'm very confused.
------------------------------
Gustavo Echenique
Original Message:
Sent: Wed February 09, 2022 10:35 PM
From: Paul Watson
Subject: Can someone help me to connect Informix IDS with Spring Boot?
Can you telnet 127.0.0.1 1526
If that gives a connection refused you have a firewall issue or you are on binding to the port you will think you are
Cheers
Paul
Paul Watson
Oninit LLC
+1-913-387-7529
www.oninit.com
Oninit®️ is a registered trademark of Oninit LLC
Original Message:
Sent: 2/9/2022 6:56:00 PM
From: Gustavo Echenique
Subject: Can someone help me to connect Informix IDS with Spring Boot?
Dear colleagues:
I am trying to connect an Informix IDS 7.31 TD9 engine in a project created with Spring Boot via JDBC, but I am not getting my goal.
I first tried Maven's Informix dependencies, but they all give me the same error: "Connection refused".
I note that when you create a Spring Boot project, many databases appear, but not Informix.
I checked the Hibernate documentation, which is Spring Boot's default persistence layer, and Informix does support it based on what they show.
Then I tried the IBM DB2 JCC Driver, which according to its documentation is used to connect both DB2 and Informix, following its examples, but it gives me an error, it says that the database cannot be opened. The message that appears is the following: "Exception java.net.ConnectException: Error opening server socket localhost/127.0.0.1 on port 1.526 with message: Connection refused: no further information. ERRORCODE=-4499, SQLSTATE= 08001".
Does anyone know the way to solve this?
Thank you in advance for your attention.
Greetings.
Gustavo Echenique
------------------------------
Gustavo Echenique
------------------------------
#Informix