python 3.x – Bluetooth (with PyBlue) does not work with (71, 'Protocol Error')

I'm trying to connect my Raspberry Pi 3B + (which runs Raspbian) to my PC (Windows 10) with Bluetooth.

I have a server script on my PC that seems to work properly. However, my pi does not connect when I run the client script. Here is the output of the client script:

Make a decision ...
Link...
Traceback (most recent call last):
File "bt_connect_test.py", like 6, in 
    client_socket.connect (("10: F0: 05: 75: 66: D7", 3))
File "", line 5, connected
bluetooth.btcommon.BluetoothError: (71, & # 39; Protocol Error & # 39;)

Can you all help me?

Here is the code for the customer:

bluetooth import *

print ("Making socket ...")
client_socket = BluetoothSocket (RFCOMM)
print ("Connection ...")
client_socket.connect (("10: F0: 05: 75: 66: D7", 3))

print ("connected type")
in truth:
data = input ()
if len (data) == 0: pause
sock.send (data)

sock.close ()

And the server:

bluetooth import *

server_sock = BluetoothSocket (RFCOMM)
print ("The server socket was successfully created.")
server_sock.bind (("", 3))
server_sock.listen (1)
print ("Socket bound and listening.")

client_sock, address = server_sock.accept ()
print ("Customer found @% s"% address)
print ("Get data ...")

try:
in truth:
data = client_sock.recv (1024)
if len (data) == 0: pause
print (data)
except IOError:
pass

print ("disconnected")

client_sock.close ()
server_sock.close ()
print ("everything is done")