Added exception to check IP Address