VLC: Cannot resolve xxx port yyy : Name or service not known

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 381
Joined: Tue Nov 12, 2013 2:05 am

VLC: Cannot resolve xxx port yyy : Name or service not known

Post by peter_b »

[PROBLEM]
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
(This is according to VLC's official HTTP-requests documentation for this)

...gives me the following error message:
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
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...? :?


[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
So, this works:

Code: Select all

$ vlc --intf http --http-host localhost --http-port 9090
Post Reply