Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser Does Not Open After Going Live #13

Closed
matt-zhrani opened this issue Aug 19, 2017 · 21 comments
Closed

Browser Does Not Open After Going Live #13

matt-zhrani opened this issue Aug 19, 2017 · 21 comments
Assignees

Comments

@matt-zhrani
Copy link

I am running Ubuntu on Virtual Box. After installing the extension on VS Code and hitting Go Live,
it prompt me with two messages: one is: "Server is started", the other is: "Error to open browser. See error on console".
Please note that the server is successfully started and I verified that it is working by typing the IP Address on my Google Chrome.

@ritwickdey
Copy link
Owner

Yep! I've just noticed that it is not working in linux but no such issue in Windows.

Btw, Thanks a lot for report on GitHub repo. :)

@ritwickdey ritwickdey self-assigned this Aug 19, 2017
@ritwickdey ritwickdey added the bug label Aug 19, 2017
@matt-zhrani
Copy link
Author

You are very welcome.
So I updated my installation after you pushed the fix.
This time I am getting this error message: "Server is started at 5500 but failed to open browser. See error on console."

@ritwickdey ritwickdey reopened this Aug 19, 2017
@ritwickdey
Copy link
Owner

Okay. Let me check.
One workaround : set liveServer.settings.CustomBrowser: chrome .

let me know that after doing so, are you still facing the issue?

@matt-zhrani
Copy link
Author

It works well now!
Thank you for your quick help

@ritwickdey
Copy link
Owner

Please remove liveServer.settings.CustomBrowser: chrome and Try v1.6.11. Hope it will open system's default browser without giving any error.

Let me know if it works for you or not.

@matt-zhrani
Copy link
Author

I just removed the custom settings and reinstalled Live Server.
It works perfectly now! thanks

@muhayminul96
Copy link

Server is started at 5500 but failed to open in Browser Preview. Got Browser Preview extension installed?

1 similar comment
@patelrohan750
Copy link

Server is started at 5500 but failed to open in Browser Preview. Got Browser Preview extension installed?

@rejoanafridi
Copy link

VS-code-live-server-problem-solve.. windows 10

Server is started at 5500 but failed to open in Browser Preview. Got Browser Preview extension installed?

step 1- open vs code go to extension (ctrl+shift+x) then search live server then go to live server manage / extension setting then + Edit in setting.json
step 2- "liveServer.settings.useBrowserPreview": true, [ if u see that line u need to replace true to false ]. "liveServer.settings.useBrowserPreview": false,
your problem is solved! enjoy vs code :)

@BIRBAHADUR07
Copy link

please still getting this problem tried everything

@BrianJ-27
Copy link

BrianJ-27 commented Mar 17, 2021

image

This is what i see when i click this the go live option in the bottom bar. However it doesn't trigger the browser preview. Is there a setting i need to add in my json file? What should the jSON file look like for it to work? Please help thanks

@suryauppalapati
Copy link

image

This is what i see when i click this the go live option in the bottom bar. However it doesn't trigger the browser preview. Is there a setting i need to add in my json file? What should the jSON file look like for it to work? Please help thanks

Same problem here too. Please provide some solution!

@Sreelayavuyyuru
Copy link

image
This is what i see when i click this the go live option in the bottom bar. However it doesn't trigger the browser preview. Is there a setting i need to add in my json file? What should the jSON file look like for it to work? Please help thanks

Same problem here too. Please provide some solution!

Same problem!!

@saurabh1505717
Copy link

server is started at port 5500 but failed to open browser. try to change the custom browser........ Is there any solution for this error

@BIRBAHADUR07
Copy link

BIRBAHADUR07 commented May 30, 2021

server is started at port 5500 but failed to open browser. try to change the custom browser........ Is there any solution for this error

Try starting server at port 80 by that you don't have to type the port number

go to browser and type localhost:5500

@saurabh1505717
Copy link

server is started at port 5500 but failed to open browser. try to change the custom browser........ Is there any solution for this error

Try starting server at port 80 by that you don't have to type the port number

go to browser and type localhost:5500

So i should change the port mannually from 5500 to 80 ? Or is there any technical procedure.

@BIRBAHADUR07
Copy link

server is started at port 5500 but failed to open browser. try to change the custom browser........ Is there any solution for this error

Try starting server at port 80 by that you don't have to type the port number
go to browser and type localhost:5500

So i should change the port mannually from 5500 to 80 ? Or is there any technical procedure.

There may be other way but I am telling you the easy way to save time 1. change port to 80 OR 2. type localhost:5500 on your browser search bar

@BIRBAHADUR07
Copy link

server is started at port 5500 but failed to open browser. try to change the custom browser........ Is there any solution for this error

Try starting server at port 80 by that you don't have to type the port number
go to browser and type localhost:5500

So i should change the port mannually from 5500 to 80 ? Or is there any technical procedure.

There may be other way but I am telling you the easy way to save time 1. change port to 80 OR 2. type localhost:5500 on your browser search bar

https://stackoverflow.com/questions/55429643/where-to-set-value-of-liveserver-settings-port-in-live-server-extension-of-visua

This is also a way to solve your problem.

@saurabh1505717
Copy link

server is started at port 5500 but failed to open browser. try to change the custom browser........ Is there any solution for this error

Try starting server at port 80 by that you don't have to type the port number
go to browser and type localhost:5500

So i should change the port mannually from 5500 to 80 ? Or is there any technical procedure.

There may be other way but I am telling you the easy way to save time 1. change port to 80 OR 2. type localhost:5500 on your browser search bar

https://stackoverflow.com/questions/55429643/where-to-set-value-of-liveserver-settings-port-in-live-server-extension-of-visua

This is also a way to solve your problem.

This solution is Not working. .... I changed the port number but after searching the same u instructed to search...... Giving me a blank. Page as output.
Please help.

@shamim-islam-bd
Copy link

VS-code-live-server-problem-solve.. windows 10

Server is started at 5500 but failed to open in Browser Preview. Got Browser Preview extension installed?

step 1- open vs code go to extension (ctrl+shift+x) then search live server then go to live server manage / extension setting then + Edit in setting.json
step 2- "liveServer.settings.useBrowserPreview": true, [ if u see that line u need to replace true to false ]. "liveServer.settings.useBrowserPreview": false,
your problem is solved! enjoy vs code :)

it's working, thanks bro!

@ashribad9871
Copy link

please bro help am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests