This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Similar Threads
can we automate any audio player using java?
Applet to Servlet Communication (only two ways?)
Applet to Servlet Communication (only two ways?)
Thread Related Problem
Home Automation