VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Multiple-Connection Telnet Server (run as a service)

Daniel M. Hendricks  (1 Submission)   Complete Applications   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Put it all together - this program was compiled from a number of different articles on this service as well as a little modification of my own. It allows you to create a telnet server service to run commands or return data on your servers. Runs as a Windows NT/2000 service on Port 26 (by default) and even allows multiple users to be connected at once.

Assumes
To use this code, you must HAVE these components: 1. Microsoft NT Service Control (ntsvc.ocx) 2. Microsoft Winsock Control 6.0 (SP4) (mswinsck.ocx) To use this code, you must DO the following: 1. Create a single, main form 2. Add two WINSOCK controls, one called 'wsListen' and another WINSOCK component array called 'wsArray(0)' In other words, you should have two WINSOCK compon- ents on your form. 3. Create one NTService object on the main form called 'objService'. 4. Copy the following code to your form - After coding, compile the program - Run from the Command Prompt: programname.exe -install - Run from the Command Prompt: net start telnetd If you did everything right, you should be able to telnet to your computer! USAGE: State -> Run -> telnet localhost 26

API Declarations
Public strCommand As String

Rate Multiple-Connection Telnet Server (run as a service) (5(5 Vote))
Multiple-Connection Telnet Server (run as a service).bas

Multiple-Connection Telnet Server (run as a service) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters