Simplify the implementation to parse ip address a bit by using Integer.parseInt directly to save 10+ lines of code.