hello everyone
ihave a sunos system my question is:
who can i give a tcp/port number to a program,
because i have an aplication than needs a static number
thanks salem
my application is not local,
so i have a program executed in the sunos , and another in a pc ,so i have to get the program of the sunos with a tcp port us the Well Known Ports.
so what i do: i add a port number to /etc/services but no thing
thanks
/etc/services (and other files) just tells the inetd which program to run to handle that port when an incoming request is received. But check with your local manual pages for precise details. Editing these files usually requires root privileges.
These should point to your server program.
> with a tcp port us the Well Known Ports.
Most of the well-known ports are already assigned.
Pick one in the user area, then tell the author / user of the PC program to use that port number in the initial request from the client program to the server program.
You only need to configure the inetd.conf & services files when you want inetd to fire off your server. If you run it as a daemon, you can avoid modifying them and just have your server bind to your port at start up.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.