Um yeah witto, but the part thats not working is the
if $printerport = ("IP_192.168.4.39")
? "IP Port Exists"
else
? "IP Port Does not Exist"
endif

Change that ip to the ip of your home printer and see if it says IP Port exists... It doesnt detect it right. Not sure what I am doing wrong.