question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iPhone not able to access external URL

See original GitHub issue

Everything is working great on desktop, but when using the external URL on my iPhone (Chrome, Safari) it just loads for a minute then say’s it can’t access the page. I have another machine that I’m using this exact setup on and it loads fine on my iPhone so I’m at a loss. Gulp file below:

var gulp = require('gulp'),
    sass = require('gulp-sass'),
    prefix = require('gulp-autoprefixer'),
    rename = require('gulp-rename'),
    browserSync = require('browser-sync'),
    reload      = browserSync.reload;

var paths = {
    styles: {
        src: './bower_components',
        files: './modules/**/*.scss',
    }
}


var displayError = function(error) {

    // Initial building up of the error
    var errorString = '[' + error.plugin + ']';
    errorString += ' ' + error.message.replace("\n",''); // Removes new line at the end

    // If the error contains the filename or line number add it to the string
    if(error.fileName)
        errorString += ' in ' + error.fileName;

    if(error.lineNumber)
        errorString += ' on line ' + error.lineNumber;

    // This will output an error like the following:
    // [gulp-sass] error message in file_name on line 1
    console.error(errorString);
}

gulp.task('sass', function (){

    gulp.src(paths.styles.files, {base: '.'})

        .pipe(sass({
            sourceComments: 'map',
            errLogToConsole: true,
            includePaths : [
                paths.styles.src,
                paths.styles.src + '/bootstrap-sass/assets/stylesheets',
            ]
        }))
        .on('error', function(err){
            displayError(err);
        })
        .pipe(prefix(
            'last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'
        ))
        .pipe(rename(function(path) {
            path.dirname = path.dirname.replace('/sass', '/css');
            path.extname = '.css';
        }))
        .pipe(gulp.dest('.'))
        .pipe(reload({stream: true}));

});


gulp.task('default', ['sass'], function() {
    browserSync({
        proxy: "http://localhost/ADGA/"
    });
    gulp.watch(paths.styles.files, ['sass'])
        .on('change', function(evt) {
            console.log(
                '[watcher] File ' + evt.path.replace(/.*(?=sass)/,'') + ' was ' + evt.type + ', compiling...'
            );
        })
        .on('change', reload);
});

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:3
  • Comments:36

github_iconTop GitHub Comments

26reactions
VladislavDegtyarenkocommented, Apr 5, 2020

For me, the IP showing by BrowserSync was different than my real one. Just leaving the comment here if someone’s fail on the same thing (Windows 10, by network, on a Moto G4 Plus).

(SOLVED) Really! Weird thing, but it solved my problem. So, the solution is:

  1. Open Command Prompt
  2. Type “ipconfig”
  3. Find your IPv4 address below your network adapter
  4. Use it instead of what browsersync told ya
23reactions
laurenthiernardcommented, Jun 29, 2016

Solved on WIN10 by allowing Node.js:Server-side Javascript on “Private” network in “Control Panel\System and Security\Windows Firewall\Allowed applications”

Read more comments on GitHub >

github_iconTop Results From Across the Web

External Links Not Opening - Apple Community
Today Safari stopped opening external links (i.e. links in Mail and website URL's dragged to the desktop.) I have: 1. Deleted the com.apple....
Read more >
Phonegap App : External URL don't open in InApp Browser of ...
Not the answer you're looking for? Browse other questions tagged. iphone · ios · xcode · cordova · inappbrowser. or ask your own...
Read more >
How to use external storage with an iPhone or iPad
1. Tap to open the Settings app. 2. Scroll down and tap General. 3. Tap About. Check the number next to Software Version....
Read more >
Why Can't I Access NetSuite via my iPhone?
Why can I not access NetSuite via my iPhone? Apple launched a new security policy with iOS9. The new security policy is requiring...
Read more >
After updating, iPhone app will never use internal URL
It doesn't appear to be a config issue because the app works fine when the External URL is correct for the network that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found