Connection refused, but works on diff computer

Ok, i'm opening a connection to a web server using ssl (jsse) and this WAS working great. But now when I try to run the same code that was working on this computer (and still works upstairs) i get:

java.net.ConnectException: Connection refused: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)

at ..............

The line of code that is causing this problem is

OutputStream outputStream = null;

outputStream = conn.getOutputStream(); <- RIGHT HERE

the conn was setup and is not null because I can getURL() on it and it's context has been setup, so everything seems to be ok with the connection but once I try to get an output stream it blows with that connection refused exception. I have set doOutput to true aswell:

conn.setDoOutput(true);

Like I said, this code works on a different computer now and used to work on this one. If anyone knows what could have happened to this machine I could appreciate any help.

(used to work but now it doesn't box)

JDK 1.4.1

Intel processor

Windows 2000

(still works box)

JRE 1.4.1 (no jdk)

Intel processor

Windows NT

Thanks a bunch

-Dave

[1290 byte] By [vt_davea] at [2007-9-28 3:48:31]
# 1
And can you ping the other computer from the one that doesn't work?
jschella at 2007-7-7 23:20:39 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...