title: Socket Python 3 UDP ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
body: <p>I have Socket Problem</p>
  
  <pre><code>import socket
  
  serverName = "herk-PC"
  serverPort = 12000
  
  clientSocket = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
  
  message = input('input lowercase sentence:')
  
  clientSocket.sendto(message.encode('utf-8'),(serverName, serverPort))
  
  modifiedMessage, serverAddress = clientSocket.recvfrom(2048)
  
  
  print (modifiedMessage.decode('utf-8'))
  
  clientSocket.close()
  </code></pre>
  
  <p>This code give me error</p>
  
  <pre><code>Traceback (most recent call last):
    File "J:\Sistem Jaringan\Task I\client.py", line 12, in &lt;module&gt;
      modifiedMessage, serverAddress = clientSocket.recvfrom(2048)
  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
  </code></pre>
  
  <p>Any solution for my error?</p>