bind socket on multiple IP adresses?

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
OlliL
Posts: 31
Joined: Mon Feb 04, 2013 5:35 am

bind socket on multiple IP adresses?

Post by OlliL »

Hi,

is it possible to have UMS listen on two IP adresses? I'd like to have UMS exposed on my LAN and on my WAN NIC but not on another LAN NIC I also have in the system. "hostname" in UMS.conf seems to allow only a single value. Leaving "hostname" out of the configuration file, UMS will pick up one IP adress randomly it seems.

Greetings
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: bind socket on multiple IP adresses?

Post by DeFlanko »

If you have multiple NICS and you don't want to Team the nics. then i don't think there is a way to do it currently in the app.
SpeedyQ
Posts: 173
Joined: Tue Jul 03, 2012 9:43 pm

Re: bind socket on multiple IP adresses?

Post by SpeedyQ »

If I'm correct I think you have the following possibilities:
-1. One instance of UMS listening on 1 IP address, serviceing multiple clients at the same time (your regular UMS setup I suppose)
-2. Multiple instances of UMS by using separate profiles; so these can be configured to listen on different IP addresses (NICS) on the same machine.
-3. Configure UMS as in -1., but configure your router to forward incoming (WAN) traffic on a certain port to the port and IP where UMS is installed. This should be a setup similar to hosting your own webserver that is accessible by connecting clients of an external network e.g. the internet.
Post Reply