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

Location:
trunk/sources/HeuristicLab.Grid
Files:
2 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";
  • trunk/sources/HeuristicLab.Grid/ServerForm.cs

    r114 r115  
    4444      InitializeComponent();
    4545
    46       // Thanks to Microsoft
     46      // windows XP returns the external ip on index 0 while windows vista returns the external ip on index 2
    4747      if (System.Environment.OSVersion.Version.Major >= 6) {
    4848        externalAddressTextBox.Text = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[2] + ":8000/Grid/Service";
     49        internalAddressTextBox.Text = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[2] + ":8001/Grid/JobStore";
    4950      } else {
    5051        externalAddressTextBox.Text = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[0] + ":8000/Grid/Service";
    51       }
    52       if (System.Environment.OSVersion.Version.Major >= 6) {
    53         internalAddressTextBox.Text = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[2] + ":8001/Grid/JobStore";
    54       } else {
    5552        internalAddressTextBox.Text = "net.tcp://" + Dns.GetHostAddresses(Dns.GetHostName())[0] + ":8001/Grid/JobStore";
    5653      }
Note: See TracChangeset for help on using the changeset viewer.