parse ip addresses