Cannot Access Sample Database After Switching Network Types

Problem: After switching network types, Unwired WorkSpace is unable to connect to the predefined "My Sample Database" connection profile.

The "My Sample Database" connection profile, by default, uses 'localhost' as the hostname. But if you change it to the real hostname, then when you switch network types, the host may not be recognized. For example, moving a laptop from an office ethernet to an WiFi connection outside the company's firewall may prevent access to the database even if it is on the same machine as Unwired WorkSpace.

Solution: In Unwired WorkSpace, modify the connection profile host property to indicate localhost as the Host. To verify the connection is working, click Test Connection to ping the database. You may also have to redeploy any projects that access an Unwired Server SQL Anywhere database connection pool and reestablish the Unwired Server connection to the database by modifying the same property from hostname to localhost.

Related concepts
Troubleshoot Code Generation
Troubleshoot Unwired WorkSpace Errors
Related tasks
Unwired WorkSpace Crashes When Previewing or Test Executing Large Amounts of Data
Cannot Start Unwired WorkSpace After Modifying Plugins
Data Source Connection Fails After Installing to a New Directory
Related reference
JDBC Connection Errors
Mobile Business Object Errors
Deployment Errors