I've written a C program which binds to a port and displays an
HTML page. However it doesn't seem to function when I use a port
<= 1024. Why is this? Is there a way of bypassing this restriction?
Sincerely,
Brian Rankin
Sincerely,
Brian Rankin
ports <= 1024 are can only be used by programs with root permissions.
So you either have to login as root (if you can do that) or ask the
SysAdmin to set you program up so it is suid root (no likely)
-Jesse
Port-numbers below 1024 are reserved for superuser. Either run your
program as root, make it suid root (be careful with that) or pick a port
robertQuote:> 1024.
The 1024 mark is there ofr a reason: ports below htis are marked ofr use
by daemons and various network services, and should be kept free for such
use: you might bump into somthing else if you use a port that soething
else expects to find anyting at.
Solution: Use a high port number.
Lord Isildur
Hi,
I've wrote a Java 1.2.2 program that listens to SNMP traps which runs under
solaris 7.
I understood that only user root is able to bind port < 1024, if this is
true then how one would be able to run applications that deal with
SNMP\Telnet\FTP..? Is there a way to work around this?
3. Non-root binding to ports < 1024
4. Apache - Bad Header - error
5. how to bind to port < 1024 (OT)
10. Allow binding to sockets < 1024 -- good idea?