Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » SQL Anywhere database connections » SQL Anywhere for Windows Mobile

 

Adding a proxy port for Windows Mobile devices

You must add a proxy port for Windows Mobile Device Center (ActiveSync) to connect to a database server on your Windows Mobile device from a desktop, so that requests to the localhost (127.0.0.1) IP address are passed on to the database running on the Windows Mobile device.

Prerequisites

There are no prerequisites for this task.

Context and remarks

You can also configure a proxy port by setting the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\ProxyPorts. Name the DWORD value SQL Anywhere and specify the port dedicated to Windows Mobile traffic (2639 is a good choice). For 64-bit versions of Windows running a 32-bit version of Windows Mobile Device Center (ActiveSync), this registry entry is in the 32-bit hive.

Caution

Modifying the registry is dangerous and can result in loss of data. It is recommended that you back up your system before modifying the registry.

 Task
  1. Start Interactive SQL on your desktop computer. For the 32-bit version of Windows Mobile Device Center (ActiveSync), you must start the 32-bit version of Interactive SQL.

  2. At the bottom of the Connect window, click Tools, and then click Setup Windows Mobile Proxy Port.

  3. Click New.

  4. In the Name field, type SQL Anywhere.

  5. In the Port field, type 2639.

    This is the recommended TCP/IP port to use for a SQL Anywhere database server running on Windows Mobile. You may use other ports as long as you ensure that the database server on the Windows Mobile device is configured to use the same port.

    Note

    Every time your Windows Mobile device is cradled, Windows Mobile Device Center (ActiveSync) forwards traffic on port 2639 to the device. If you start a database server on your desktop computer while your Windows Mobile device is cradled, it cannot use port 2639. If this is problematic, you can choose another port to dedicate to Windows Mobile traffic.

  6. Click OK.

    When setting up or changing a proxy port, it may be necessary to log off and then log in to your Windows desktop in order for the new proxy port setting to take effect.

Results

A new proxy port setting is configured.