LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2012, 02:10 AM   #1
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Rep: Reputation: 12
can we use well know ports for our own process ?


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.

Thnaks
 
Old 08-06-2012, 05:13 AM   #2
Gleylancer
LQ Newbie
 
Registered: Aug 2012
Distribution: Slackware+RHEL
Posts: 24

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 08-08-2012, 07:50 AM   #3
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
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.
 
1 members found this post helpful.
Old 08-08-2012, 07:56 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
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.
 
1 members found this post helpful.
Old 08-08-2012, 07:56 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XPOST: Ports between 59873 and 60000 used by mystery process. jfroot Linux - Security 1 07-28-2008 01:55 PM
Monitor inter process communication across ports chtaylo3 Programming 0 07-12-2006 03:28 PM
how to know what are all the ports are available and which process is using that cyber.juggernaut Linux - Networking 2 02-21-2006 12:48 PM
Internet-Process Id,ports related jared78 Linux - Networking 6 05-19-2005 02:44 AM
Change UID of process/Privileged ports syntac Linux - General 1 04-17-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration