Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JRE and udp Port 137

843798Jun 23 2002 — edited Jun 25 2002
We 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;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2002
Added on Jun 23 2002
1 comment
258 views