launcher: Refs #2278 get first ip address algo

When creating tcp_sproxy if tcp_sproxy_host is not provided, get list of
all interfaces and IP, and get the first one.