in reply to socket problems
unfortunetly active state gave an unknown error when it couldn't connect to the http port of inactive hosts. you can see my confusion then. i believed it was with the way i was inputting my ip. i also corrected my code in many ways thanks to your post, i went for a foreach loop and some other things. thanks.