added check and testing output for ip; issue #14