Could not bind janus web server on a specific ip address

Hi there!

I’m trying to install and configure Janus on my environment and bind a specific ip address and port number but setting the ip and port on the janus.transport.http.jcfg file it seems not working fine. It prints this error:

[transports/janus_http.c:janus_http_create_daemon:467] Error binding to IP ‘X.X.X.X’ for Janus API HTTP webserver…
[transports/janus_http.c:janus_http_init:795] Couldn’t start webserver on port 8088…[transports/janus_http.c:janus_http_create_daemon:467] Error binding to IP ‘X.X.X.X’ for Admin API HTTP webserver…
[transports/janus_http.c:janus_http_init:871] Couldn’t start admin/monitor webserver on port 7088…

It works only if I set 127.0.0.1 as ip address with any port number but it’s not what I want to do. I’m using 1.1.2 Janus and 0.9.66-1 libmicrohttpd12 and I’m using http protocol for both “general” and “admin” section in janus.transport.http.jcfg.

Does anyone have any insight to solve this problem?

Is X.X.X.X a valid IP or interface name on the machine? If so, you should check if it works for other IPs available on the machine, and if so why it only fails for that. At any rate, it sounds like a problem in the library, rather than Janus itself. You can enable additional debug by enabling mhd_debug in the plugin configuration file: janus-gateway/janus.transport.http.jcfg.sample at master · meetecho/janus-gateway · GitHub