Hello Kira
You should be able to use ruby-dicom for client-side communication with a PACS.
The first step is to create a DClient instance, with the IP address of the server you want to connect to and the port number to use. Example:
node = DICOM::DClient.new("10.1.25.200", 104)The you can use this node for either query or sending/moving files. Example:
If there is a problem with the DICOM communication, ruby-dicom will print out a log and it should be able to give an indication of what is going wrong.
However, in your case it seems there is a problem with the connection in itself. Thus I think there is no DICOM communication at all, and you have a general network problem: Perhaps you have mistyped your server IP address or specified the wrong port. It's hard for me to say what exactly is the cause.
My suggestion is double check that the server address is correct and try with another port, e.g. 11112 instead of 8080. Also it seems strange to have the AE title of the PACS being 'localhost'.
For documentation on the DClient class refer to:
Best regards,
Chris