@Rob - Thanks for the advise of not hard coding the IP address and rather
using the host name. I tried a test and where the IP had worked the host
name does not work
I'm looking at "Why do I get java.sql.SQLException: "Network error
IOException: Connection refused: connect" when trying to get a
connection?" on the jtdswebsite ([1]
http://jtds.sourceforge.net/faq.html)
@Luis - The default port for jtds is 1433.
@Larenzo - When I attempted a test switching from using the IP address to
the host table entry it failed. See @Rob.
I'm doing more research to see where the error is...
Rob
On 5/22/2017 12:32 PM, Larenzo Alexander wrote:
If the ip address worked but the host name didn't work, maybe the Host Name for the SQL Server need to be in the TCP/IP host table on the IBM i.
-----Original Message-----
From: RPG400-L [[2]mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of gio.cot
Sent: Monday, May 22, 2017 11:31 AM
To: [3]rpg400-l@xxxxxxxxxxxx
Subject: Re: JDBCR4 error Unknown server host name
Hi Rob
With Ip address works fine
Many thanks !!!
Now I go on with other test
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: [4]RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: [5]
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [6]RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at [7]
http://archive.midrange.com/rpg400-l.
Please contact [8]support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: [9]
http://amzn.to/2dEadiD
References
Visible links
1.
http://jtds.sourceforge.net/faq.html
2. mailto:rpg400-l-bounces@xxxxxxxxxxxx
3. mailto:rpg400-l@xxxxxxxxxxxx
4. mailto:RPG400-L@xxxxxxxxxxxx
5.
http://lists.midrange.com/mailman/listinfo/rpg400-l
6. mailto:RPG400-L-request@xxxxxxxxxxxx
7.
http://archive.midrange.com/rpg400-l
8. mailto:support@xxxxxxxxxxxx
9.
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.