Trying to start VLC from commandline to have its web-interface listen to a certain IP/port:
Code: Select all
$ vlc --intf http --http-host localhost:9090
...gives me the following error message:
I've tried "127.0.0.1" instead of "localhost" to avoid name resolution issues, but looking at the error message again it seems like VLC considers the ":port" string part of the hostname...?VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[0000557fcfb545a0] main playlist: playlist is empty
[0000557fcfc2c770] [http] lua interface: Lua HTTP interface
[0000557fcfc2c770] [http] main interface error: Cannot resolve localhost:9090 port 8080 : Name or service not known
[0000557fcfc2c770] [http] main interface error: cannot create socket(s) for HTTP host
[0000557fcfc2c770] [http] lua interface error: Error loading script /usr/lib/x86_64-linux-gnu/vlc/lua/intf/http.luac: lua/intf/http.lua:336: Failed to create HTTP host
![Confused :?](./images/smilies/icon_confused.gif)
[SOLUTION]
VLC's example in the HTTP-requests documentation is outdated.
The "Documentation of the HTTP interface module" contains the updated syntax (valid for VLC 2.0.0 and later):
Code: Select all
--http-host=host
--http-port=port
Code: Select all
$ vlc --intf http --http-host localhost --http-port 9090