Hi, I'm new to Java so im sorry if this is a stupid question. I am consuming a .Net web service from a Java application via a SOAP request. This works on my computer however it will not work on any other computer, even with the same Internet connection and Java version running. it returns the error "Connection reset" which I think is a java.net.SocketException, however I cannot get to the bottom of why this error only occurs on other computers.
Does anyone know what could be causing this? or is there some problem with my code?

//SOAP data
String xmldataInput = "<![CDATA[" strAmineOnt "]]>";
String xmldata = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
" <soap:Body>"
" <JavaTest xmlns=\"http://tempuri.org/\">"
" <InputString>" xmldataInput "</InputString>"
" </JavaTest >"
" </soap:Body>"
//Create socket
String hostname = host;
int port = 80;
InetAddress addr = InetAddress.getByName(hostname);
Socket sock = new Socket(addr, port);

//Send header
BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream(),"UTF-8"));
wr.write("POST webservice.asmx HTTP/1.1\r\n");
wr.write("Host: host\r\n");
wr.write("Content-Type: text/xml; charset=utf-8\r\n");
wr.write("Content-Length: " xmldata.length() "\r\n");
wr.write("SOAPAction: \"http://tempuri.org/JavaTest\"\r\n");

//Send data

// Response
BufferedReader rd = new BufferedReader(new InputStreamReader(sock.getInputStream()));
String line;
String OWLont;
OWLont = "";
while ((line = rd.readLine()) != null)
OWLont = OWLont "\r\n" line;
int IndexOfStartTag = OWLont.indexOf("<JavaTestResult>") 16;
int IndexOfEndTag = OWLont.indexOf("</JavaTestResult>");
OWLont = OWLont.substring(IndexOfStartTag,IndexOfEndTag);
OWLont = OWLont.replaceAll("<", "<">", ">");
//access web service