I am working on angular 2. Project is compiling and run locally by using "ng-serve or npm-start" command. Now Teamviewer connected to access the Safari browser. In that the localhost:4200 did not run.
How to run the project locally in Teamviewer browser? I tried,
ng serve --host=localIP
ng serve --host localIP
start http://localhost:4200 & ng serve -port 4200
But nothing works.
I changed my .angular-cli.json as
"defaults": {
"serve": {
"port": 4200,
"host": "localIP"
},
"styleExt": "css",
"component": {}
}
and baseUrl: 'http://localIP:4200/' in config.js.
So anyone please help me what is the command to run the project locally in teamviewer? Thanks in advance.