- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- change ftp port
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 10:28 AM
тАО07-11-2003 10:28 AM
i now i asked a lot of questions lately
but then again i am a newbie :-(
my os is hp-ux 11.11 with the latest ftp patches.
what i want to ask is how to change the ftp port from 21 to XXXX.
i must do this because my provider dont let me get a connection with another provider.
thanx in advance,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 10:56 AM
тАО07-11-2003 10:56 AM
SolutionYou can manipulate your /etc/services and get it working. However, your client should know the it has to connect to your HP server through the port xxxx otherwise it will get "connection refused" message.
1. Take a copy /etc/services
2. Edit /etc/services. Modify the entries ftp and ftp-data to point to two different ports. Make sure there are no other processes that are using these ports. Search for these ports in the file and do a "netstat -an |grep "\*\.xxxx".
3. Restart inetd. "inetd -c".
4. Do a "netstat -an |grep "\*\.xxxx" and make sure the port is in LISTENING mode.
To test it connect from the localhost. It will connect to xxxx port as it get's the getservbyname from /etc/services.
$ftp localhost
If it works, then your setup is good on the HP server.
Then ask your clients to modify their service lookup files (services) to change the ftp port from 21 to xxxx.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 10:58 AM
тАО07-11-2003 10:58 AM
Re: change ftp port
ftp
open servername
If you're talking about somebody connecting to you, I haven't tested this yet but logically it should work. You could give it a try:
Edit the ftp line your /etc/services file, it is set at the default port (21). Try putting a different port in there and restart Inet.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 11:09 AM
тАО07-11-2003 11:09 AM
Re: change ftp port
thanks for the quick responces all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 11:10 AM
тАО07-11-2003 11:10 AM
Re: change ftp port
Change your /etc/services file,
change the port of ftp to the wanted
then use this port for connect to the server.
Caesar