1754925 Members
2871 Online
108827 Solutions
New Discussion юеВ

FTP using port 2100

 
SOLVED
Go to solution
Tony Romero
Advisor

FTP using port 2100

I have an app that ftps to an hpux 11.0 server using port 2100 but denies the connection. Other than /etc/servers and /etc/inet.d/conf is there anything else I should be looking at?

If I use: telnet hostname 2100 I get connection refused. If a try it on a different server it works, but yet I don't see port 2100 open on services.
Freedom!!!
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: FTP using port 2100

Hi Tony,

You will need to change both ftp and ftp-data to point to the ports you desire in /etc/services and bounce inetd (inetd -c). Once it is done, make sure you have these ports listening by doing a 'netstat -an |grep your_port|grep LISTEN"

Make sure your client's service lookup file (whereever it is but on unix it is /etc/services) is also updated with the same ports for those services.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: FTP using port 2100

You need to create a new entry in /etc/services

e.g.
myftp 2100/tcp

Save that file.

You now need a new entry in /etc/inetd.conf
identical to your existing ftpd entry except that the first field 'ftp' is replaced by 'myftp'. Save the file and issue an "inetd -c" to force a reread of the config file.

You should now be able to test the connection by "telnet hostname 2100".

If it ain't broke, I can fix that.