Where is the config data for http host and port?

*nix specific usage questions
zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

Where is the config data for http host and port?

Postby zimon » 05 Oct 2011 19:42

I was going to try http remote access to VLC.
I configured HTTP-access via VLC's graphical preferences window.

Now VLC cannot start and I cannot find where the host and the port is configured so I could delete them or change them.

$ vlc
VLC media player 1.1.11 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x160f200] main interface: creating httpd
[0x160f200] main interface error: socket bind error (Permission denied)
[0x160f200] main interface error: cannot create socket(s) for HTTP host
[0x160f200] oldhttp interface error: cannot listen on 192.168.3.15:8080
[0x160f200] main interface error: no suitable interface module
[0x15f0b70] main interface: creating httpd
[0x15f0b70] main interface error: socket bind error (Permission denied)
[0x15f0b70] main interface error: cannot create socket(s) for HTTP host
[0x15f0b70] oldhttp interface error: cannot listen on 192.168.3.15:8080
[0x15f0b70] main interface error: no suitable interface module
[0x14f5120] main libvlc error: interface "default" initialization failed

The host:port info is not anywhere in ~/.config/vlc or ~/.local/share/vlc
Cannot guess to where else I should look.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Where is the config data for http host and port?

Postby Rémi Denis-Courmont » 05 Oct 2011 21:14

Port 8080 is the default. The hostname should be in vlcrc already.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

Re: Where is the config data for http host and port?

Postby zimon » 05 Oct 2011 22:14

Ok, found it.
How to change the port number?
8080 is reserved for webproxy in this machine.
$ grep 8080 /etc/services
webcache 8080/tcp http-alt # WWW caching service

Or how to disable whole http server? There should be a way to start vlc with factory default settings somehow.
(Maybe I just have to delete vlcrc file)
Now I should just kill webcache so VLC could start and I could change the configuration.

zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

Re: Where is the config data for http host and port?

Postby zimon » 05 Oct 2011 22:30

solved.

I had to change "intf=oldhttp" to "intf=" in the vlcrc so vlc could be started again and GUI preferences can be accessed.
For many users vlc would stay "broken". Maybe vlc should say to stdout one has to fix or delete vlcrc to start with default settings.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Where is the config data for http host and port?

Postby Rémi Denis-Courmont » 06 Oct 2011 09:48

It's kind of obvious you need to erase the configuration to reset the default settings. They wouldn't be called settings if they did not survive restarting the player.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

zimon
Blank Cone
Blank Cone
Posts: 18
Joined: 28 Sep 2011 19:03
VLC version: 3.0.0-git-rpmfusion
Operating System: Linux

Re: Where is the config data for http host and port?

Postby zimon » 13 Oct 2011 10:43

Well, I think it is a usability bug, which will make some people skip vlc as a working solution when this happens and vlc cannot be started. I don't know if same thing happens also in Windows if port 8080 is reserved for something else and user tries to enable vlc-remote and this leads to unworking, unstarting VLC.

And port 8080 is a bad choice for a default port of vlc-remote, because it is practically reserved port for webcache.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Where is the config data for http host and port?

Postby Rémi Denis-Courmont » 13 Oct 2011 12:41

8080 is the registered "alternate HTTP port". That's actually the only sane default for non-privileged HTTP servers.

It's quite normal for VLC not to start if the interface failed. I don't see how you can avoid that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests