Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script, telnet options 1

Status
Not open for further replies.

PhilBreau

Technical User
Dec 14, 2001
108
CA
Is there any way a script can connect to a specific ip address/port (other than port 23)?
 
It depends on how you are connecting to the site. If you are using the dial command with a Connection Directory entry, you can specify the port number in the Connection Directory entry. If you are making a manual telnet connection, you can use:

connectmanual TELNET "telnetsite:port"

with telnet site replaced by the name of the machine you are connecting to and port replaced with the port number you want to access. I think ASPECT also supports a space between the system name and port number (instead of the colon), but I did not try that in my quick and dirty test script.
 
From my connection directory I have all my TELNET sites under the &quot;telnet&quot; tab and as previously stated the host/ip box contains <hostipaddress:portnumber> works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top