Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



Create a server on port <1024 without being root

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-03-2009
halutz's Avatar
Member
 
Join Date: Apr 2008
Posts: 44
Create a server on port <1024 without being root

I made a program that acts as a server, and I would do it through a port rather "small."
Problem: impossible to create a server when I take a relatively small port. And I have a vague recollection of having learned that it was possible to listen on ports less than 1024 only as root

Since the program contains several thousand lines of code that make a lot of things (to write to files selected by the user !!!), and also because I do not want to type my password every time I start, I would like to know if there is not a way to make an "exception" or something along the lines to listen on this port without being root?

thank you in advance,
Reply With Quote
  #2  
Old 26-03-2009
Dr. V
 
Posts: n/a
Re: Create a server on port <1024 without being root

Why especially a port <1024? The range of 1025 to more than 65,000 is not big enough?
Reply With Quote
  #3  
Old 26-03-2009
halutz's Avatar
Member
 
Join Date: Apr 2008
Posts: 44
Re: Create a server on port <1024 without being root

There are two reasons:
1) that seems more the port is small, the greater the priority (well, I see not how it is possible too, but hey, there may be a "true")
2) I prefer to use a port type 80 for example, because it 99% chance of being always open, even in a rather "filtered".
Knowing that I took this decision after seeing a guy who was in a university room (or something like that ) And who could not use my program.
Reply With Quote
  #4  
Old 26-03-2009
stinger's Avatar
Member
 
Join Date: Apr 2008
Posts: 33
Re: Create a server on port <1024 without being root

Port 80 and has a great chance of being used by Apache or other software such as Skype ...
However I am also interested in a possible solution.
Reply With Quote
  #5  
Old 26-03-2009
Birdie's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,659
Re: Create a server on port <1024 without being root

Why not do a NAT with iptables rule that redirects connections to a port X <1024 to another port Y> = 1024?
__________________
FIFA 09 preview
Reply With Quote
  #6  
Old 26-03-2009
halutz's Avatar
Member
 
Join Date: Apr 2008
Posts: 44
Re: Create a server on port <1024 without being root

Quote:
Originally Posted by stinger View Post
Port 80 and has a great chance of being used by Apache or other software such as Skype ...
However I am also interested in a possible solution.
I do not have to use port 80, I can use port FTP, SMTP and more ... And I'm the one who has the server, and I would, of course, a port that I do not already exist.
Quote:
Why not do a NAT with iptables rule that redirects connections to a port X <1024 to another port Y> = 1024?
Yeah, I find the above if I have no other solution.
Because I do not have iptables installed, and I too did not want to install just for this ... (my office is already livebox firewall)
There are no other solutions to add an exception, or even disable this security (unless it poses security problems ).

And if not, there comes an idea: It would not be possible to make a routing rule on the NAT livebox to redirect that enters on port 80 to port 1234 for example? Because I seem to remember that this is possible on the interface I'm trying ... it's night and I would like to see current
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Create a server on port <1024 without being root"
Thread Thread Starter Forum Replies Last Post
How to Create Client Printer on Server 2008 with IPP port Bikendi Networking & Security 5 19-04-2011 11:36 PM
call of duty modern warfare Error - Couldn't create a 1024 x 2048 render target surface tomerking1212 Video Games 1 21-10-2010 07:40 AM
DCDiag Test - DNS Root hints list has invalid root hint server Sean Windows Server Help 5 07-06-2010 11:47 PM
Error: Root hints list has invalid root hint server stevesemple Windows Server Help 10 22-03-2009 06:57 PM
Convert Enterprise Root CA to Standalone Root CA and create newSubordinate CAs Chris Morley Windows Security 4 05-03-2009 05:12 AM


All times are GMT +5.5. The time now is 06:17 AM.