![]() So you have to port forward in visual studio code to port 5500 or what ever port it says in the window at the bottom or on the bottom right side of the screen in for me it is port 5500 but I have had it give me a different port which was 5501 so what ever port number it gives you when the live server is started is the port you are going to want to use for port forwarding in visual studio code. so it can't connect to that servers ssh html files. To answer part of my questions yes you do have to port forward, but it is on visual studio code so when you are connected to a ssh machine, local host is not going to pull up the html files on that machine, because it is not a local host. Can someone please help me get it working, For ssh html files and local files on the c: drive? I am confused about why it is not working. What if the html files I want to edit are not stored on the local host machine and are saved on a ssh Ubuntu server which would no longer be localhost it would be the ip address of the ssh server? I am confused about how it is pulling up the documents in a browser like it used to do with the ip address in the browser of 127.0.0.1:5500 or different port number. Is this happening because I need to port forward on the router to the local host, the computer I am usings ip address? ![]() Is it happening because I need to port forward the files coming from the ssh server on my router to port 5500, the ssh ubuntu servers ip address?Įven on the local machine it is not opening html files on the local machines c: drive in live server. If so do I need to somehow change ssh settings in visual studio code to open not localhost:5500 files and the ssh html files everytime. Is this happening because I am trying to connect to a ssh directory? I have tried to open in live server on local files and ssh files and now it will not open with the null setting or firefox setting with the live server extension installed for firefox. I don't remember if it was a directory on the local machine that I am using or not but it opened it. When I first started using visual studio code it opened html files using the default null setting and opened the html file in Microsoft Edge. ![]() I installed firefox live server extension and tried to open and it didn't open anything. I changed the setting to open firefox and it didn't open anything. The default browser in file preferences settings was set to null which means default browser, but when I clicked open live server on visual studio code it didn't open anything. I am using visual studio code to edit html files and they are saved on a directory on Ubuntu and I amĬonnected to a host on ssh using visual studio code.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |