I need to check the remote IP and the port is available or not. If available, he will proceed to the next form. If it is not available, it should return to its original state. I tried using this
while (true) { IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties(); IPEndPoint[] ipEndPoints = ipProperties.GetActiveTcpListeners(); ------- ------- ------- }
I am showing an example coding.it checking the local IP address and port and moving on to the next form. It will check the local port and IP access. If the port and IP are not available, it will go to the initial stage and fine.same thing will work, I have to check the remote port and IP.
user3494471
source share