This sounds like you need the documentation of the server. Once you know what internet protocol messages to send, we might be able to help you implement it.
But feel free to leave the question up, you might be in luck. Dicom filed are horrible enough on their own for me, so I don't envy the task of adding an internet layer.