• I have a WordPress localhost development website with the following WordPress Address and Site Address values:

    WordPress Address: https://localhost/IST01
    Site Address: https://localhost/IST01

    As you can see, both values match. I am trying to debug this website using Chrome’s remote debugging tool on a Samsung Galaxy S9+ (Android 10) smartphone. I can get access to the phpinfo.php file that is located in https://localhost/IST01/phpinfo.php via Chrome’s Inspect browser tab with no problem. However, when I try to access the website using the following access URL, the URL is redirected:

    Access URL: https://localhost:5000/IST01/
    Redirected URL: https://localhost/IST01/

    The port number of “5000” is being stripped from the access URL, which results in a “This site can’t be reached” error message.” I suspect that the reason for the error is that the Chrome remote debugging port forwarding port number (which I have set to “5000”) is being stripped from the access URL because it is not present in the Site Address URL.

    I have the following questions:

    1. Is the port number being stripped because of the WordPress Site Address value (which doesn’t contain a port number)?

    2. How can I fix this problem?

    Thanks In Advance For Your Help!

    • This topic was modified 2 years, 3 months ago by Bill Vallance.
    • This topic was modified 2 years, 3 months ago by Bill Vallance.
    • This topic was modified 2 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. Is the port number being stripped because of the WordPress Site Address value (which doesn’t contain a port number)?

    Yes.

    2. How can I fix this problem?

    I would just set up a dummy domain/hostname and resolve it over my network (by adding an entry in my devices’ hosts file, router, or some other means)… and use this as my WordPress site address… instead of using localhost.

    Thread Starter Bill Vallance

    (@bvallance)

    Thanks for the response @gappiah. I have a few questions about your suggestion:

    1. Does the use of localhost differ from using a dummy domain name?

    2. Would adding the port number to the WordPress Site Address work? I realize I would have to type the port number each time I wanted to reach the development website.

    I REALLY appreciate your help with this problem!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Localhost Chrome Remote Debugging Not Working’ is closed to new replies.