listening on mult ports and return JSON in-process