x = 0 while x < 255: x = x + 1 ip = '%s.%s.%s.%s' % (a, b, c, x) scanning(ip) while x == 255: c = c + 1 x = 0 while x < 255: x = x + 1 ip = '%s.%s.%s.%s' % (a, b, c, x) scanning(ip) while c == 255: x = 0 c = 0 b = b + 1 while x < 255: x = x + 1 ip = '%s.%s.%s.%s' % (a, b, c, x) scanning(ip) while b == 255: x = 0 c = 0 b = 0 a = a + 1 while x < 255: x = x + 1 ip = '%s.%s.%s.%s' % (a, b, c, x) scanning(ip) while ip == '255.255.255.255': print "You have reached the end of the internet. Please go outside."