Expose IP, port, proto as sep. env vars when linking, Closes #2430