Create IP Address in Photon.LoadBalancing.dll.config automatically?
Options
AndreWe
✭✭
Hi,
is it possible to receive the IP of the Server running a selfhosted pun service automatically? Currently we have to enter the public IP Address in the
But when installing PUN on an other Server, we must change the IP in the config file, as the Server changes. Is there a way to place something like
is it possible to receive the IP of the Server running a selfhosted pun service automatically? Currently we have to enter the public IP Address in the
Photon.LoadBalancing.dll.config
, like PublicIPAddress
and/or MasterIPAddress
manually before starting the Service.But when installing PUN on an other Server, we must change the IP in the config file, as the Server changes. Is there a way to place something like
%IPADDRESS%
or the like as placeholder there?0
Comments
-
hi, @AndreWe
I would say that if you need this then what you are doing is not what we have expected.
but here is some hints for you.
if you leave that field empty then it will resolve it automatically to public IP with help of external service. if you are behind NAT or router you will get IP of that machine.
The second option is the 'internal' keyword. It will try to resolve the IP address of the machine in the intranet. Something like 192.168.....
try it and write feedback
best,
ilya1 -
Very nice, thank you. I think we go for the 'internal' keyword.0