Unable to access Frappe 14 site on Local Network (VirtualBox)

It should be:
192.168.1.36 test

(e.g. the name of the site which you created with bench and which is active)

You can add several site names with the same IP to your windows hosts file. That’s not a problem.

I added ‘192.168.1.38 workdone’ (IP changed to 38) in the last line of hosts file in windows and added the same in ‘/etc/hosts’ in linux. Still not working.

And then you opened the URL http://workdone:8000 in your windows browser?

And does the ERPNext instance in your virtualbox have a site “workdone” (created with bench)?
Or does it have a different name?

Yes there is a site called workdone. The current site is set to ‘workdone’. When I try to access site using workdone:8002:

And if you try:

?

Same:

Ping to workdone from client pc?

image

Try http://workdone:8000

No ping, in the browser

You mean like this? :

No, no, sorry … i mean try now to open the site using the url http://workdone:8000 from the client browser

Well … please, check nginx logs ( /var/log/nginx/) maybe will found some clues …

Maybe try: nmap 192.168.1.38 and nmap localhost

nmap 192.168.1.38
image

nmap localhost
image

Inside the error.log I found the following text:

2023/08/08 14:49:20 [crit] 746#746: *1 open() "/home/workdone/frappe-bench/sites/192.168.1.38/public//" failed (13: Permission denied), client: 192.168.1.44, server: test, request: "GET / HTTP/1.1", host: "192.168.1.38"
2023/08/08 14:49:21 [crit] 746#746: *1 open() "/home/workdone/frappe-bench/sites/192.168.1.38/public//" failed (13: Permission denied), client: 192.168.1.44, server: test, request: "GET / HTTP/1.1", host: "192.168.1.38"

Hi:

Seems due to permissions …

Have your “bench” user right permissions over site directory? Additional question … your site folder is “192.168.1.38”?? Can you show the contents of the site directory?

Thanks

These are the contents inside my sites folder: