Use the passed addresses in parseListeners.

Also, check the return error on parseListeners to catch invalid IP
addresses.