This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Welcom to Java,
You have to define the port of your choice having in mind that;
Port numbers in TCP/IP systems are 16-bit numbers and the values range
In practice, port numbers below 1024 are reserved for
predefined services, and you should not use them unless communicating
with one of those services (such as telnet, Simple Mail Transport
Protocol [SMTP] mail, ftp, and so on).
Client port numbers are allocated
by the host OS to something not in use, while server port numbers are
specified by the programmer, and are used to identify a particular service.
Note that for you to establish a communication,
Both client and server must agree in advance on which port to use. If the
port numbers used by the two parts of the system do not agree,
communication does not occur.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com