Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Port controll in servlet

 
chandu joshi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic