Click here to Skip to main content
15,911,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i'm developing a client to telnet a server and receive data from it. But dont know how to provide username & password which s required to login to the server by telnet. Can somebody help me to solve this issue asap as t s very crucial and urgent for me. i googled for a solution but failed to find. thanks

ill take an example. Assume that you need to login to a host with ip 10.200.136.17. if i telnet it from the command prompt it asks for username and password.

first i telnet the server
telnet 10.200.138.17

then it asks for username password

username:
password:

then it connects to the host..

i need to do the same thing using vb6.
i have found a way to connect using winsock. but im unable to connect to my host as i doesnt know how to provide username password to connect into it.

Winsock1.RemoteHost = "10.200.138.17"
Winsock1.RemotePort = 23
Winsock1.Connect

please help. i have only 2 days to finish this :(
Posted
Updated 25-Oct-11 23:05pm
v3

Install VB.net and join the 21st century.

Try this[^]
 
Share this answer
 
v2
Comments
hansikaat 26-Oct-11 0:03am    
Do you know how to do this using vb.net? im not familliar with vb.net :( if you could me codings i can try :) coz i dont have much time to complete this :(
Nagy Vilmos 26-Oct-11 4:21am    
You are being exceptionally lazy, but there's a link to help in the solution.
hansikaat 26-Oct-11 5:06am    
:) thanks
I do not think that the Telnet protocol requires a password (although I might be wrong here). It is probably the server that requires a password. If so you will need to let us know what service on the server you are trying to connect to (even the port number you are connecting to might help a bit).

What is it that makes you think a username/password is required?
 
Share this answer
 
Comments
hansikaat 26-Oct-11 5:06am    
I have updated the question
ill take an example. Assume that you need to login to a host with ip 10.200.136.17. if i telnet it from the command prompt it asks for username and password.

first i telnet the server
telnet 10.200.138.17

then it asks for username password

username:
password:

then it connects to the host..

i need to do the same thing using vb6.
i have found a way to connect using winsock. but im unable to connect to my host as i doesnt know how to provide username password to connect into it.

Winsock1.RemoteHost = "10.200.138.17"
Winsock1.RemotePort = 23
Winsock1.Connect

please help. i have only 2 days to finish this :( :(
 
Share this answer
 
Comments
RaisKazi 26-Oct-11 4:25am    
Please do not add further details of your Question in Solution section. Instead use "Improve question" link to update your Question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900