-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket Exception (Forbidden access) #125
Comments
(1) Try to start this app as admin |
I am sure that I followed all of your steps but it still goes wrong. |
Start with administrator privileges and still report an error |
+1 |
Me too, but I changed the port to 52319 and successfully connected |
Same with @weijen6 , I changed the default port to another random port then it's working. |
53317 seem to be a bad choice as there is a small probability that it is used as a "ephemeral port" (temporary port). I guess a proper fix for this is to use a lower number port and use 53317 as fallback. |
Looks like this default port 53317 is reserved by Windows and other potential applications. So any port in the below range will run into the same issue. In my case, I changed to 59998 and it works well. > netsh interface ipv4 show excludedportrange protocol=tcp Protocol tcp Port Exclusion Ranges Start Port End Port |
I have the same problem, but I find that the port 53317 is like blocked by localsend itself... |
Phone2Mac: Mac2Phone: |
also on android tablet (oppo pad android 13, if means something) and dont have on other (huawei). no problem to specify manually, but... |
much appreciated! |
Changing to another port number like 52199 on both devices works for me. |
3Q,this is correct. I checked my TCP port Exclusion Ranges and it is different. |
Very good keep up the good work |
52319 worked for me |
I just faced this issue. But rebooting the system solved the same. Anyway, for those still having this, try these https://www.thewindowsclub.com/error-10013-an-attempt-was-made-to-access-a-socket |
Me too. Is it possible to automatically switch to a usable port when LocalSend runs? |
I had the same issue and I tried
It works for me. |
Thanks bro, after running this code, I can use port 53317 to transfer files normally. |
Me too. Thanks! |
My Hyper-V VM dynamically used port 53317, causing Localsend to fail. I solved this by setting dynamic TCP ports to start above 60000 with the commands:
This avoids the port conflict by using higher numbered ports for dynamic allocation. |
Just faced this issue as well, restarting Internet Connection Sharing from services fixed it immediately, didn't even need to restart localsend, was able to start the server from localsend's settings right away. |
Same case for Win 10 22H2. |
**
**
i get this error in windows
The text was updated successfully, but these errors were encountered: