I am trying to create a socket that acts as either a client or a server depending on what it connects to/connects to it. What I have now is that it trys to connect as a client b