![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What prot is a process listening on? | Le Badger | UNIX for Dummies Questions & Answers | 2 | 11-02-2007 06:39 AM |
| What are you listening to right now? | Mars8082686 | What's on Your Mind? | 4 | 08-21-2006 11:05 PM |
| So... What are you listening to? | hype.it | What's on Your Mind? | 33 | 03-31-2005 03:48 PM |
| Listening on port for incoming data? | frustrated1 | Shell Programming and Scripting | 6 | 01-16-2004 03:48 PM |
| port not listening.. | Prafulla | IP Networking | 1 | 12-12-2001 06:46 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
TCP Listening Ports
Hello all,
Can someone instruct me on how to change the listening port for ftp ( or any tcp service) from 21 to another port number? Thanks in advance.. -AJ |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Do you have a /etc/services file?.
Regards. Hugo. |
|
#3
|
|||
|
|||
|
Yes, i do...Am I suppose to change port number from this file?
-AJ |
|
#4
|
||||
|
||||
|
Under most circumstances, I would not recomend changing anything in the /etc/services file.
You can if you want utilities like netstat to show the names, as opposed to the numbers of ports in use / listening, etc... Find out where you ftp daemon is being started (statup script, inetd, somewhere else?). You should be able to change a command-line option there to change the default port. Look at your ftpd man page for more info. For example, on one of my systems, the man page tells me that I can specify the control and data ports with -p and -P So if I changed a line in /etc/inetd.conf to: ftpd -p 3040 -P 3039 It would run ftpd with a control port of 3040, and data port of 3039. |
||||
| Google The UNIX and Linux Forums |