#region 搜索ftp服务器地址 /// <summary> /// 搜索ftp服务器 /// </summary> public void SearchFtpServer() { var beginIp=""192.168.1.1; var endIp=""192.168.1.251; var currentIp = IPAddress.Parse(beginIp); var endIp = IPAddress.Parse(endI
Problem: Give a series of IP segments, for example, [0.0.0.1-0.0.0.3], [123.234.232.21-123.245.21.1]... Now there is a new IP, find which IP segment it's in ? Solution: First, we could map the ends of IP segments into some intervals, since the IP add