Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Port Numbers In etc/hosts
Name: Alan Vowles Date: February 20, 2002 at 03:37:16 Pacific
Comment:
I FTP connect to a remote system via an alias specified in my etc/hosts file.
By default the FTP connects via port 21 but I now require to connect to that system using port 8000.
Is there anyway of specifying the port number to be used for that alias in the etc/hosts file?
Name: Leigh Date: February 20, 2002 at 15:29:30 Pacific
Reply:
Why don't you just put the post number after the server alias in the ftp string.
eg. ftp alias port
0
Response Number 2
Name: stefancaunter Date: February 26, 2002 at 20:55:03 Pacific
Reply:
/etc/hosts does not know about ports; it only maps ips to hostnames. if you are running tcpwrappers you can twist requests for ftp on the server side to be answered on port 8000. if your system allows it you can use a .netrc file to specify an ftp port or whatever you want when you connect -- see man ftp for syntax.
Summary: Hello: I am very new to shell programming and in need of some help. I have a file sc.cfg that contains some ip addresses as ASCIP. sc.cfg -------------- ASCIP=3.87.87.3/255.255.252.0 ASCIP=3.87.86.4...
Summary: When you see the message “no route to host” it is message that has been delivered by ICMP. While there many reasons for it, I would suggest you to go through this list. 1. Ping with the DNS name (...
Summary: Hi there, Is there any body that knows how to find out which applications are using which ports. For example oracle by default uses port 1521. Is there a way of discovering that the oracle listener fo...