• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

Port assignment

I am developing a client Java applet that will be embedded into a Web page. The applet will communicate with an existing application.

Is it possible to assign a port number to an application. If possible how can I do it? (ie. Echo server has port no 7, telnet 25, smtp 23, http 80 vs vs., ports beyond 1024 are unused, how can I assign port 1025 to an executable program or do I need to define my own protocols to do that)?


Dogu Arifler
1 Solution
You can assign a port number to a service (under unix, simply add a line to /etc/services). However, this change is only local, it needs to be done on every client machine executing your application.

If you want an official assignment, you can contact the IANA (Internet Assigned Numbers Authority. Check RFC 1700 for details.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now