Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7398661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:53:52+00:00 2026-05-29T03:53:52+00:00

I have a central server and I need to write a bit of vb.net

  • 0

I have a central server and I need to write a bit of vb.net which will see if I can telnet to a specified server on a specified port.

Is there anyway this can be done in VB.net? I thought about sending command prompts to the remote server to execute telnet, then output the logs of netsh and read those and send the information back to the central server for review.

Its a very messy way of doing it, so I was just wondering if there was an easier way

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:53:53+00:00Added an answer on May 29, 2026 at 3:53 am

    You should just create a TcpClient object with the IP address of the target server and port (typically 23 for telnet). Then call Connect!

    See here for more info:

    http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx

    Something like this (may not be exact):

    Try
    
       Dim telnetServerIp As String = "192.168.100.55"
       Dim telnetPort As Integer = 23
       Dim client As New TcpClient(telnetServerIp, telnetPort)
       MessageBox.Show("Server is reachable")
    Catch ex As Exception 
       MessageBox.Show("Could not reach server")
    End Try
    

    Be advised this is sample code. You’d want to clean up (close/dispose) the connection (TcpClient) object when you were done, etc. But it should get you started.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a distributed application which polls for commands from a central server and
I have a fairly involved managed data model which has a central object with
I work in field robotics and we have a central server keeps track of
I need to implement Merge replication with a scenario like a Central Main server,
I need to update my application from a central server. The application checks always
The concept I have uses a central MySql database which has many Java clients
I have a Merge Replication setup between a central server and 200 clients. The
We have several application servers, and a central monitoring server. We are currently running
I have an existing HTML5 web app which I am going to port to
I have a central page that generates directory names on the server and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.