Creating a Substitute Host Name and Domain

If you installed the Mobile Development component and did not enter a company domain during the installation process, you must create a substitute host name and domain from your company IP address.

The IP address of each network machine uses the following format:

aa.bb.cc.dd

where each dot-delimited value ranges from 0 to 255.

StepsTo create a substitute host name and domain from your IP address

  1. Run the ipconfig command to determine the IP address of your machine.

  2. Construct the substitute host name and domain using the IP address:

    1. Use the aa portion of the IP address as the host name.

    2. Use the .bb.cc.dd portions as the domain name.

      NoteSybase recommends that the Unwired Accelerator host machine be given a unique, static IP address on the network.

      Running Unwired Accelerator on a machine with an IP address that was dynamically assigned through DHCP will result in continuous maintenance as a dynamically generated IP address can change over time.

  3. Open the global.properties.xml file and globally edit the host name and domain. Choose from:

    Table 3-3: global.properties.xml

    Server

    Location

    EAServer

    <installation directory>\DevRuntimes\EAServer\ Repository\WebApplication\onepage\config\ global.properties.xml

    Apache Tomcat

    <installation directory>\DevRuntimes\UA\tomcat\ tomcat\webapps\onepage\config\ global.properties.xml

    Using a file editor, replace demo with the IP-based hostname. Then replace sybase.com with the IP-based domain.

    For example, if the IP address of your machine is 192.168.0.2, replace demo with 192 and sybase.com with 168.0.2.

  4. If your browser does not allow you to scope a cookie to the IP-based domain value, edit the loginresponse.xsl file. Choose from:

    Table 3-4: loginresponse.xsl

    Server

    Location

    EAServer

    <installation directory>\DevRuntimes\EAServer\ Repository\WebApplication\onepage\home\docapps\framework\loginresponse.xsl

    Apache Tomcat

    <installation directory>\DevRuntimes\EAServer\ Repository\WebApplication\onepage\onepage\ home\docapps\framework\loginresponse.xsl

    Edit the setSessionCookie function to be:

    var cookie = "OPCCLogin="+cookieval + "; path=/";

  5. If you plan to run the Enterprise Edition of Unwired Accelerator in a network without a domain:

    1. Edit the HTTP/HTTPS listeners to have a full IP address.

    2. Edit the IP address in the Proxy Domain field. Do the following:

      • Select Servers | Jaguar | Server Properties from the menu bar.

      • Click the HTTPConfig tab.

      See EAServer 5.3 Core Documentation on the Sybase WorkSpace online bookshelf for more information.