Setting up a localhost target for browser previews

Hi all !

I am receiving this error when I click the Open in browser icon. I searched the forum and docs but have not found advice on how to resolve this. Can someone let me know what I am missing please?

So I went into project settings to define a localhost target as I have MAMP running with a document root of C:\MAMP\htdocs and my project is located within it: C:\MAMP\htdocs\paper-trader

But when I test the connection I receive this error:

I can confirm the server is running and serving up pages from the document root:

The URL should read

http://localhost/paper-trader

2 Likes

Thank you Ben! I also had to include the port the server is running on to get it to work.


(excuse the path change between screenshots, I am working on my mac now).

The connection to the server is successful now. The last thing I had to do was change the Target at the bottom to the Localhost server I setup:

image

3 Likes

5 posts were split to a new topic: Setting up targets in local IIS and permissions

Hi Ben,

Need your help please. i am facing similar issue but my server is IIS8. while server is running and a test page is working and directory permissions are Full Access.




Most probably the entered web URL is wrong.
Are you sure it should not be:

http://localhost/kashif ?

Hi Teodor,

Actually i did try with both, with and without /kashif.
Please see below.

The error says your URL is wrong, so that’s the cause of the problem.
How do you access the site from within your browser?

using the URL http://localhost

But is this URL pointing to the wwwroot folder or to the subfolder you specified in the local folder input?

Sub folder as i created a new website in IIS. Please see below

Hi Teodor,

I figured out that while installing IIS, my ASP.net was not configured properly somehow. i did install again IIS with ASP.net and connection test is successful now. Thanks a lot for your support. looking froward for continued help in future as always from Wappler team.

2 Likes