如何解决无法连接到远程计算机 [英] How to Solve Could not connect to remote machine

查看:256
本文介绍了如何解决无法连接到远程计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这是我的第一个问题.

我正在尝试实施网络管理系统.
我正在用C#(VS 08)编写应用程序,如
页面加载->->

Hello All,

This is my first question.

I am trying to implement Network Management System .
I am writing an application in C#(VS 08) as
on page load ->->

NetworkBrowser nb = new NetworkBrowser();
foreach (string pc in nb.getNetworkComputers())
{
ComboBox1.Items.Add(pc); //this will add all the computer names present in LAN
}

on Combobox1_SelectedIndexChanged event ->->

string name = Combobox1.Text.ToString(); // this will give the selected computer's name present in the LAN
Process[] ipByName = Process.GetProcesses(name);//this will get all the processes from the selected computer
foreach (Process p in ipByName)
{
MessageBox.Show(p.ProcessName.ToString());
}




*****我遇到无法连接到远程计算机的错误


因此,请告诉我如何在C#中使所有进程在远程计算机上正常工作




我在这里的情况就像
我有一个名为Server-1的服务器
我在LAN C-1和C-2中有2个客户端
我想要一个可以告诉我客户端c-1和c-2上当前正在运行的所有进程的应用程序




在此先感谢
Ajay




*****I am getting error like Couldn''t Connect to Remote Computer


So please tell me how to get all the processes working on a remote computer in C#




My Scenario here is like
I have server named Server-1
I have 2 Client''s in LAN C-1 and C-2
I want an application that will tell me all the processes currently running on Client c-1 and on c-2




Thanks in advance
Ajay

推荐答案

确保可以连接到远程计算机.您可以在命令提示符下测试此购买(开始>运行并键入cmd,然后按Enter").

假设以下内容:
远程计算机名称:TstComp1
远程计算机IP:192.168.1.100

在命令提示符下,键入``ping TstComp1''或``ping 192.168.1.100''.如果答复是超时,则您没有与远程计算机的连接.确保防火墙已关闭或允许传入连接.
Make sure that you can connect to the remote computers. You can test this buy opening the command prompt (''Start > Run and type cmd then press enter'').

Assuming the following:
Remote computer name: TstComp1
Remote computer IP: 192.168.1.100

At the command prompt, type ''ping TstComp1'' or '' ping 192.168.1.100''. If the reply is a timeout, then you do not have connection to the remote computer. Make sure firewall is off or permitting incoming connections.


这篇关于如何解决无法连接到远程计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆