The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect
Hi, I've got the above error message when I was trying to set my database connection in JDeveloper, a jsp editor.
What I did what this:-
jdbc:sqlserver://myIPAdd:1433;SelectMethod=cursor;DatabaseName=Z_Test
What I've done:-
- Since when I ran my jsp page during (performed without setting database connection) testing and saw that the address bar displayed "http://myIPAdd:8988/untitled1.jsp", I changed my port in sqlserver to 8988 and I still get the error so I change back.
- Tried to connect to a database from another IP address, it was successful.
Can anyone tell where is my mistake?
P/S I hope I'm in the right category of this forum.