Eggy Eggy - 1 year ago 50
Linux Question

How to visit site hosted on localhost from android deivice in the same network?

Alright, I think this question was posted many times before, but I just can not get this to work.

I got simple hugo website which is hosted on localhost(I use

hugo server
). Now I want to display this site on my android device. To see my IPv4 ip adress I click on internet icon, select "information about connection". Then I open up a adroid browser and go to the address:
http://<ip address>:<hugo port>
but I got an error: "server rejected connection". My example ip address is something like:

I made it work with windows, but just can not get this to work with linux.


You should change server ip to to expose to a network

Like hugo server --bind=""