Is there a way to run au run --watch on specific IP rather than on localhost?

If my static IP is 10.8.4.166, how to use au run --watch to run on this IP rather that on localhost?

1 Like

It would not prevent you from accessing at http://10.8.4.166.

1 Like

Or you could modify the file at: aurelia_project/tasks/run.js -

  let opts = {
    host: 'localhost',
  let opts = {
    host: 'whatever',
2 Likes

it runs as default on localhost:8080, but if I try myIP:8080, I get ‘Site cannot be reached’ error

1 Like

Not sure why, but you can try ping theIP to test whether you have routing problem.

1 Like

that worked. changing from ‘localhost’ to 0.0.0.0 workd for localhost and IP

2 Likes

You could also pass —host flag to au run command with desired IP address.

au run —host 10.8.4.166

au run --watch --host 10.8.4.166 --port 7070

2 Likes