Page 1 of 1

[INFO] "Force IP Address" address

PostPosted: Mon Mar 26, 2012 2:43 pm
by Strupniveral
Hello,

I'm looking for a quick information: the "Force IP Address" setting is used to bound Serviio to a specific IP address, right?

I provided "192.168.0.254" as IP and restarted Serviio.
Here below are all the ports used by Serviio:
  Code:
java      11313     1002   30u  IPv4  21504      0t0  TCP 192.168.0.254:44331 (LISTEN)
java      11313     1002   34u  IPv4  21509      0t0  TCP *:23423 (LISTEN)
java      11313     1002   63u  IPv4  24018      0t0  TCP *:8895 (LISTEN)
java      11313     1002   64u  IPv4  24025      0t0  UDP *:1900


It looks like just the port 44331 is bounded to the specified address, while all the others are listening on all interfaces.
A similar behavior is shown by the web ui:
  Code:
java      12277     1001   31u  IPv4  23793      0t0  TCP 192.168.0.254:44333 (LISTEN)
java      12277     1001   36u  IPv4  23795      0t0  TCP *:8123 (LISTEN)


I don't have any issue with Serviio/Web UI, I'm just wondering if this is the intended behavior or if I'm missing something :)

Thanks in advance and Regards
Luca

Re: [INFO] "Force IP Address" address

PostPosted: Mon Mar 26, 2012 7:01 pm
by zip
yes it is, so that you can access the REST API on localhost or the external IP address

[INFO] "Force IP Address" address

PostPosted: Wed Mar 28, 2012 8:04 am
by Strupniveral
I see, thanks for the clarification...

Is there a chance to force the binding to a single interface only?
In my specific case, the box running serviio in an headless linux box acting also as router, so binding to * means it will be possible to reach it from internet.
My current firewall settings forbid such thing, so I'm fine with current behavior - I'm just curious :)

Re: [INFO] "Force IP Address" address

PostPosted: Wed Mar 28, 2012 12:49 pm
by zip
the 23423 port can be bound by adding -Dserviio.remoteHost system property (see support pages/faq)

Re: [INFO] "Force IP Address" address

PostPosted: Thu Mar 29, 2012 8:55 pm
by Strupniveral
cool, thanks!