ERR_ADDRESS_UNREACHABLE to open my localhost in Chrome Android

I am using the BrowserSync task from Grunt, this task runs my local project at the address "localhost: 3000".

enter image description here

It works great. But when I use the external url ( http://192.168.1.129 { 000 ) in my smartphone, I get the following error from my Chrome browser on Android:

ERR_ADDRESS_UNREACHABLE 

I do not understand this problem. You can see my Gruntfile.js here:

 //Gruntfile.js module.exports = function (grunt) { grunt.initConfig({ //Watch task config watch: { }, //BrowserSync browserSync: { default_options: { bsFiles: { src: [ "css/*.css", "js/*.js", "*.html" ] }, options: { watchTask: true, proxy: "tutorialmaterialize.dev" } } } }); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-browser-sync'); //Default task grunt.registerTask('default', ['browserSync', 'watch']); }; 

how can i fix this ?, thank you very much.

+7
javascript android google-chrome gruntjs browser-sync
source share
2 answers

your IP address starts with 192.168, which means it is a private network.

Only devices on the private network can access them.

Your phone must be on the same network.

You can verify this by checking the first 3 digits of your IP phone - the first 3 digits should be the same - if they start 192.168.1.NUMBER, then on the same network. If not, then on a different network, and you need to get them on the same network.

If they are already on the same network, make sure port 3000 is open on the firewall, both the routerโ€™s firewall and the firewall running on the computer you are accessing.

+1
source share

if your server port is 3000 and check your ip in cmd as follows :: ipconfig ip4: 192.168.11, than add it in mobile and on the desktop.

on your mobile Chrome http://192.168.1.11{000/

0
source share

All Articles