Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-02-2012, 10:29 AM
|
#1
|
LQ Newbie
Registered: Nov 2010
Posts: 5
Rep:
|
what the port 0 is used for?
recently I used a port-scan tool,and I found that the port 0 in my machine is openned for all,does it have any bad effect on the security of my system?and what is port 0 userd for?
Thanks for all in advance.
Kind Regards,
G.g
|
|
|
08-02-2012, 01:42 PM
|
#2
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,336
|
|
|
1 members found this post helpful.
|
08-02-2012, 06:22 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,254
|
|
|
|
08-03-2012, 11:11 AM
|
#4
|
LQ Newbie
Registered: Nov 2010
Posts: 5
Original Poster
Rep:
|
Thanks for all. the link is useful,content as below.
Port 0 is officially a reserved port in TCP/IP networking, meaning that it should not be used for any TCP or UDP network communications. However, port 0 sometimes takes on a special meaning in network programming, particularly Unix socket programming. In that environment, port 0 is a programming technique for specifying system-allocated (dynamic) ports.
Configuring a new socket connection requires assigning a TCP or UDP port number. Instead of hard-coding a particular port number, or writing code that searches for an available port on the local system, network programmers can instead specify port 0 as a connection parameter. That triggers the operating system to automatically search for and return the next available port in the dynamic port number range.
Unix, Windows and other operating systems vary slightly in their handling of port 0.
|
|
|
08-03-2012, 04:49 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,254
|
Well, not sure I agree with that. Ports have been listed as common but there is no law that they must be on those ports. You don't need to register any port. You simply use a port as you wish. If it interferes then you would have to fix one or the other. I have used stuff over port 80 to get past firewalls for example. I know people who's ISP blocks port 80 at their home so they run http server on some other port that is open. Many people move remote desktop ports to help secure the connection.
Last edited by jefro; 08-03-2012 at 04:50 PM.
|
|
|
All times are GMT -5. The time now is 12:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|