InstantWP icon indicating copy to clipboard operation
InstantWP copied to clipboard

err_unsafe_port 10080 in Windows 11 Pro

Open dslaby opened this issue 2 years ago • 2 comments

Has anyone solved the issue "err_unsafe_port" 10080 in Windows 11 Pro using Edge browser? Is there a way to configure Windows Defender to not block InstantWP if that is the problem?

dslaby avatar Jun 29 '23 05:06 dslaby

10080 is a restricted port:

Explicitly allowed network ports Supported versions: • On Windows and macOS since 91 or later Description There is a list of restricted ports built into Microsoft Edge. Connections to these ports will fail. This policy allows bypassing that list. The set of ports is defined as a comma-separated list that outgoing connections should be permitted on. Ports are restricted to prevent Microsoft Edge from being used as a vector to exploit various network vulnerabilities. Setting this policy may expose your network to attacks. This policy is intended as a temporary workaround for error code "ERR_UNSAFE_PORT" while migrating a service running on a blocked port to a standard port (for example port 80 or 443). Malicious websites can easily detect that this policy is set, and for which ports, then use that information to target attacks. Each port listed in this policy is labeled with a date that it can be unblocked until. After that date the port will be restricted regardless of if it's specified by the value of this policy. Leaving the value empty or unset means that all restricted ports will be blocked. Invalid port values set through this policy will be ignored while valid ones will still be applied. This policy overrides the "--explicitly-allowed-ports" command-line option. Policy options mapping: • 554 (554) = port 554 (can be unblocked until 2021/10/15) • 10080 (10080) = port 10080 (can be unblocked until 2022/04/01) • 6566 (6566) = port 6566 (can be unblocked until 2021/10/15) • 989 (989) = port 989 (can be unblocked until 2022/02/01) • 990 (990) = port 990 (can be unblocked until 2022/02/01) Use the preceding information when configuring this policy.

dslaby avatar Jul 01 '23 10:07 dslaby

Hi.

After visiting another github forum for win 10, I was able to fix this issue for my Win 11 Pro PC.

The steps

Port 10080 blocked and flagged as unsafe by browsers

  1. [ ] Start InstantWP
  2. [ ] Open Firefox browser
  3. [ ] Type about:config in the browser address bar and press enter
  4. [ ] Click the Accept the Risk and Continue button
  5. [ ] Paste the string network.security.ports.banned.override in the search bar
  6. [ ] Choose the String option and click the + button
  7. [ ] Enter the blocked port 10080
  8. [ ] Calculate a new port offset, e.g. 25000
    1. This offset added to 80 will give 25080, the new port number
  9. [ ] Open a new tab and paste the URL http://127.0.0.1:25080/phpmyadmin/
  10. [ ] Login with the credentials: default is root and blank password
  11. [ ] Click the wordpress database
  12. [ ] Click the wp_options table
  13. [ ] Edit the row with option_name site_url
    1. Change the port in the address to the new one, e.g. 127.0.0.1:25080 and save
  14. [ ] Edit the row with option_name home. Change the port as well and save
  15. [ ] Logout from phpmyadmin
  16. [ ] InstantWP: Go to the Advanced tab, and click Edit Config File
  17. [ ] Scroll to the section [vmports]
  18. [ ] Change the PortOffset value to the new port offset, e.g. 25000
  19. [ ] Save the file and close it.
  20. [ ] Quit InstantWP
  21. [ ] After the application closes, open Task Manager
  22. [ ] Search for QEMU machine emulators and tools (32 bit)
  23. [ ] If found, kill the process. If not, close the Task Manager
  24. [ ] Restart InstantWP

PS: I put checkboxes as a way to encourage use as a checklist.

reywald avatar Aug 05 '24 01:08 reywald