Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/08/08 14:49:16 (16 years ago)
Author:
gkronber
Message:

improved the comment of the OS.version check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid/ClientForm.cs

    r114 r115  
    5858
    5959    private void startButton_Click(object sender, EventArgs e) {
    60       //clientUrl = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[0] + ":8002/Grid/Client";
    6160      string hostname = Dns.GetHostName();
    6261      IPAddress[] addresses = Dns.GetHostAddresses(hostname);
    6362
    64       // Thanks to Microsoft
     63      // windows XP returns the external ip on index 0 while windows vista returns the external ip on index 2
    6564      if (System.Environment.OSVersion.Version.Major >= 6) {
    6665        clientUrl = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[2] + ":" + clientPort.Text +"/Grid/Client";
Note: See TracChangeset for help on using the changeset viewer.