JRE and udp Port 137
843798Jun 23 2002 — edited Jun 25 2002We have recently moved our web server of our private network to the DMZ. When access our applet/servet with the following code below the firewall blocks a udp packet sent to the web server on port 137.
This has caused a lengthy delay because it appears to be waiting for a response from the server and does not get one.
Has anyone seen this behaviour and what is the machine sending.
Regards,
Jason
// get the host name and port of the applet's web server
URL hostURL = getCodeBase();
hostName = hostURL.getHost();
port = hostURL.getPort();
if( LocalServlet == true )
servletPath = "/servlet/tui";
else servletPath = "/vibs/tui";
Vector vectorSingleValueData = new Vector();
ObjectInputStream inputFromServlet = null;
webServer = "http://" + hostName + ":" + port + servletPath + "?Action=getSingleValueData&Command=" + "Test";
try{
URL url = new URL(webServer);
URLConnection servletConnection = url.openConnection();
inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
vectorSingleValueData = (Vector)inputFromServlet.readObject();
inputFromServlet.close();
}
catch (IOException e)
{
System.out.println(e.toString());
}
catch (ClassNotFoundException e)
{
System.out.println(e.toString());
}
catch (Exception e)
{
System.out.println(e);
}
return vectorSingleValueData;