title: Unity client-server basic questions
body: <p>I have been trying to do simple networking in which i can send a message from one device to another. My first thoughts were 'Would I have to pay to use unity multiplayer functionality?' so I found this <a href="https://stackoverflow.com/questions/36091976/can-i-use-the-unity-networking-hlapi-without-paying-for-the-unity-multiplayer-se/36092168">article</a> which seemed clear and directly explained how I would need to do networking in order to maintain zero costs on my behalf. After further searching I discovered <a href="https://docs.unity3d.com/Manual/UNetClientServer.html" rel="nofollow noreferrer">this</a> bit of unity documentation which seems to explain how to do networking simply in the same way described in the previous article and eluded to simple low level API message sending which I desired. [Important Note: I work in C#]</p>
  
  <p>But I have seemed to ground to a halt in this journey of discovery as I have found no further articles or videos to guide me and answer my questions which i still have about how this works.</p>
  
  <p>Hence today i am asking :</p>
  
  <p>A - Do you know of any further articles or videos which would guide me through this?</p>
  
  <p>B - Am i going totally in the wrong direction?</p>
  
  <p>C - Could you answer any of my key questions as below?</p>
  
  <ol>
  <li><p>When creating a server, i.e below, what port should i listen on and should I worry about 'port forwarding' which is a phrase I see often chucked about.</p>
  
  <p>NetworkServer.Listen(4444);</p></li>
  <li><p>When creating a client, i.e below, what i.p address should i use? I presume it is that of the client's device but how do i know what it is?</p>
  
  <p>myClient.Connect("127.0.0.1", 4444);</p></li>
  <li><p>How do i get 2 devices to connect, my idea was to make any device by default become a client and then somehow 'check for servers' and if not it would create its own server with local client for a client to connect to, this way there would be no excess servers... ?</p></li>
  </ol>
  
  <p>Thanks you very much for reading my question and I hope it seems clear, please check the links so that this will make sense to you. Any answers are greatly appreciated so that i can continue on my journey of understanding.</p>