Changeset 115 for trunk/sources/HeuristicLab.Grid/ClientForm.cs
- Timestamp:
- 04/08/08 14:49:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Grid/ClientForm.cs
r114 r115 58 58 59 59 private void startButton_Click(object sender, EventArgs e) { 60 //clientUrl = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[0] + ":8002/Grid/Client";61 60 string hostname = Dns.GetHostName(); 62 61 IPAddress[] addresses = Dns.GetHostAddresses(hostname); 63 62 64 // Thanks to Microsoft63 // windows XP returns the external ip on index 0 while windows vista returns the external ip on index 2 65 64 if (System.Environment.OSVersion.Version.Major >= 6) { 66 65 clientUrl = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[2] + ":" + clientPort.Text +"/Grid/Client";
Note: See TracChangeset
for help on using the changeset viewer.