Added constructor which accepts IPAdress type

Added a constructor which accepts an IPAdress paramter.