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

 

Determining the IP address of your Windows Mobile device

You can determine the IP address of your Windows Mobile device, which may be necessary when connecting to a database that is running on Windows Mobile.

Prérequis

There are no prerequisites for this task.

 Task
  1. On your Windows Mobile device, tap Start » Programs » SQLAny16.

  2. Tap Server.

  3. In the Database field, type the name of the database file that you want to start or click Browse to locate the database.

    By default, the sample database is located in \My Documents\demo.db.

  4. In the Server Name field, type the database server name that you want to use.

    The default name for the sample database server is demo.

  5. In the Options field, type -z -x tcpip(port=2639).

    With the -z option, the database server displays its IP address during startup. The address may change if you disconnect your Windows Mobile device from the network and then re-connect it.

    The port that the database server will use is 2639. It is best to avoid the use of port 2638 which is also the default TCP/IP port for a SQL Anywhere server running on your desktop system. For more information, see -x database server option.

  6. Click Use TCP/IP.

    A TCP/IP connection is necessary to connect from a desktop computer to the database running on your Windows Mobile device.

  7. Tap OK to start the sample database running on the network database server.

  8. Navigate to the Today screen on your device.

  9. Tap the database server icon located in the bottom right corner of the screen.

Résultat

The IP address of your Windows Mobile device appears in the database server messages window. Look at the first Starting UDP listener on IP address message in the list for the IP address.

 See also