change getconnection to accept to prevent confusion
made code operational
attempted to use getaddrinfo and failed miserably
resort to ip4 addresses for now