C#远程处理问题 [英] C# remoting Problem

查看:66
本文介绍了C#远程处理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始远程处理时出现问题:无法建立连接,因为目标计算机主动拒绝了它127.0.0.1:8080我该如何解决它

I have problem when i start remoting: No connection could be made because the target machine actively refused it 127.0.0.1:8080 how can i fix it

推荐答案

科恩,
您可以在成功后首先像这样验证ipaddress,然后就可以进行.... System.Net.NetworkInformation.Ping ping =新的System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply pingReply = ping.Send("youripaddress here ...");
如果(pingReply.Status == IPStatus.Success)
{
//在此处编写您的远程连接..
}
Hi Korn,
you can validate ipaddress first like this after success then you can do....wat ever you want
System.Net.NetworkInformation.Ping ping = new System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply pingReply = ping.Send("youripaddress here...");
if (pingReply.Status == IPStatus.Success)
{
//write your remoteconnection here..
}


这篇关于C#远程处理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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