File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Port controll in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Port controll in servlet" Watch "Port controll in servlet" New topic

Port controll in servlet

chandu joshi

Joined: Sep 15, 2005
Posts: 12
I want to write a program which controll my port of PC.But i want to run that program in servlet.That servlet is able to controll port .How it possible.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You may need to explain a little further.

The port to which the container is bound is not controlled by the servlets.
This is a configuration issue. It's also one that is greatly affected by the operating system.
(i.e. On Unix systems, you would need to be root uer to bind to ports lower than 1025. You also can't have two applications bound to the same port/protocol combination).

Maybe you mean something else.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Port controll in servlet
It's not a secret anymore!