I have installed nginx, rtmp and ffmpeg based hls live streaming working on ubuntu machine. I use this command to stream hls
sudo ffmpeg -re -i sample.mp4 -vcodec libx264 -vprofile high -g 30 -acodec aac -strict -2 -f flv rtmp://localhost/show/stream2
when I try to play this stream using VLC using following commands on the same machine it works well.
http://myIp:8080/hls/stream2.m3u8
or
http://localhost:8080/hls/stream2.m3u8
However when I try to access from remote computer connected to same WIFI, not able to play. VLC gives an error that unable to play the file.