title: Connection error between server client OS error
body: <p>Hello I am pretty much new to socket and I was trying to make a connection inside my local computer using socket.
  this is the server </p>
  
  <pre><code>import socket
  
  def server():
    host = socket.gethostname()   # get local machine name
    port = 8080  # Make sure it's within the &gt; 1024 $$ &lt;65535 range
  
    s = socket.socket()
    s.bind(('192.168.56.1', port))
  
    s.listen(1)
    client_socket, adress = s.accept()
    print("Connection from: " + str(adress))
    while True:
      data = s.recv(1024).decode('utf-8')
      if not data:
        breakpoint
      print('From online user: ' + data)
      data = data.upper()
      s.send(data.encode('utf-8'))
    s.close()
  
  if __name__ == '__main__':
      server()
  </code></pre>
  
  <p><strong>and this is the client</strong></p>
  
  <pre><code>import socket
  
  
  def client():
    host = socket.gethostname()  # get local machine name
    port = 8080  # Make sure it's within the &gt; 1024 $$ &lt;65535 range
  
    s = socket.socket()
    s.connect(("192.168.56.1", port))
  
    message = input('-&gt; ')
    while message != 'q':
      s.send(message.encode('utf-8'))
      data = s.recv(1024).decode('utf-8')
      print('Received from server: ' + data)
      message = input('==&gt; ')
    s.close()
  
  if __name__ == '__main__':
    client()
  </code></pre>
  
  <p><strong>I know there are useless lines in there but I will clean it up after I finish my connection .</strong></p>