I was able to get the development server up by doing ‘hugo server -D’. I am able to access it locally by going to 127.0.0.1:1313/theme.
The ip address for the computer running Hugo server is 192.168.1.20. I was expecting that I could go to any computer in my network and access the Hugo development server by going to 192.168.1.20:1313/theme in the browser. However, that does not work. I get an error in the browser. Since I’m trying to access this from within my network, there should not be any port forwarding issues in the router.
I was able to do sockstat -4 -l in my computer(freebsd) running Hugo and confirm that Hugo is listening in 1313. I can ping the ip 192.168.1.20 successfully as well.
I’m not sure what could be going on. Is there anything inherent in Hugo that only accepts local connections? If yes, Any way to change that?