Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Hi,
I have written a shell script to scan the ports of system using nmap.
I am searching for some port number like 515 which is used by the Line Printer Daemon—print service and if it is there means I can say it is a printer as printer only have this daemon.
I don't know whether this port can be used by any other process.If yes kindly tell me about this whether it is possible to use the well known port or not by our own process.
If yes then I can't say it is a printer as port user is not a printer all the time.
You can use any port for any service. An open port 515 does not mean there is a printer behind it. I can assign Apache to port 515. Or FTP, VNC, whatever, it's completely up to the administrator.
Technically, what Gleylancer said is true.
But there are standards for well-known ports and their usage. So, someone could technically have an FTP server listen on port 515 but it would be a non-standard (and, hence, wrong) thing to do.
So, someone could technically have an FTP server listen on port 515 but it would be a non-standard (and, hence, wrong) thing to do.
I disagree----doing non-standard things can help with security, and in so doing can be very much the right thing to do.
even ignoring security, non-standard is not inherently wrong. My whole Arch system is non-standard in many ways---and Arch has been in the "top ten" at distrowatch for some time now.
yes, in general there are common standards, so when you want to use ftp, http, rsync, ssh or any other tool they will always assume the default port. But you can change it, you can use anything else. Using nonstandard ports or using these ports with nonstandard apps will/may confuse the users, and also will/may secure the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.