17:18, EEST
March 26, 2014
Hi,
I’ve noticied that using the Server SDK with the UseLocalhost and AddAllIPAddresses works perfectly fine on Windows but on Linux it requires that the /etc/hosts file contains the hostname and the IP Address to use. At least with a CentOS fresh install.
So for instance, if I want to be able to use the public IP of my server, I have to put the IP and hostname in the hostfile. This is of course not really good if you want to be able to change the IP of the server and do not remember to change the hosts file.
I just would like to know if there is a better behavior possible without changing the SDK (we are using the 1.4.8 version for this software). If possible, I would like to have a change impacting only the OS configuration or my software that configures the server sdk. For instance should I add all enpoints manually by finding myself the public IP of the computer + the loopback address (NetworkInterface.getNetworkInterfaces() ?)
I did no test yet with the 2.0 SDK but I believe you may have change the way this works now (I’ve seen that useLocalhost is deprecated for instance).
Thank you !
9:10, EEST
December 21, 2011
Yes, that’s been problematic in Linux. And yes, you should be able to add endpoints to the server as necessary.
In 2.0 SDK, the EndpointUrl is no longer that strictly tied to the address the server is listening at. So there is the new property BindAddresses, in which you can define the interfaces used for communication and the EndpointUrl is generated automatically from the host name of the computer. The clients can still connect to the server using the IP Address, even though there is no separate endpoint for it. Therefore, you shouldn’t need to add custom endpoints either.
Most Users Ever Online: 1919
Currently Online:
16 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 731
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1