1. Android Central Question's Avatar
    Hi,all I am developing an app that use a webview. everything work except connecting to my localhost web devp environment. How to do this? Please advise.
    07-11-2020 01:52 AM
  2. mustang7757's Avatar
    [Moved to developer forum]
    07-11-2020 01:54 AM
  3. mustang7757's Avatar
    I'll leave a Link to register so you can communicate here as a guest account you can only post questions but can't reply.https://forums.androidcentral.com/sh...d.php?t=409154
    07-11-2020 01:54 AM
  4. Rukbat's Avatar
    You can't connect to "this computer" (which is what "localhost" means), you connect to a particular port on a computer, which means that you have to have a server app listening on that port on that computer. For a webview, that would be port 80, and you need a web server running on the computer (or phone). If you don't want to install a whole web server, WiFi File Transfer runs as a web server, so you can run it to test things (run it, then tap Home and WiFi File Transfer will keep running), connect to localhost (or, with most phones, your local IP address), then go back to WiFi File Transfer (swipe up on the home icon and scroll to fine it, then pull it down) and close it. (Then uninstall it if you don't want it taking storage space, but it's a small app, and it's useful.)
    Golfdriver97 and Laura Knotek like this.
    07-11-2020 05:33 PM

Similar Threads

  1. Replies: 12
    Last Post: 07-11-2020, 11:08 PM
  2. How do you put x-ray vision back to normal
    By Android Central Question in forum Ask a Question
    Replies: 3
    Last Post: 07-11-2020, 01:46 AM
  3. Replies: 12
    Last Post: 07-10-2020, 11:29 PM