Click here to Skip to main content
15,906,455 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

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..
}
 
Share this answer
 

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