Local App Connection Refused with Bluetooth Adapter

Hi there,

I’ve been working on a local python app. Everything was working smoothly until I just got an update to the app and/or adapter today and now I’m getting connection refused errors on Windows. The connection still works when I connect with bluetooth to my Macbook.

I am connecting to 127.0.0.1:20010. I’m getting this error in Windows: requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, port=20010): Max retries exceeded with url: /command (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x000001E80BC7DBE0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))

I’ve disabled firewalls, checked proxy settings, and even disabled my anti-virus to see if any of those were causing the refusal but none of those solved the problem. I’m thinking one of those updates to either the app or the adapter may have changed either the address or the port? Any thoughts or insight would be helpful.

1 Like

Hi,

This kind of error is probably caused by other application’s occupation on port 20010.

You can check if the port is used by excuting netstat -ano in command line. If you are able to find an application using port 20010, record its PID and open the task manager, go to the Details panel, find the program corresponding to the PID to see if it is Lovense remote.

1 Like