All Products
Search
Document Center

Serverless App Engine:What to do if the IP address and port fail to bind when starting HSF?

Last Updated:Sep 30, 2025

Symptoms

When using Ali-Tomcat to start multiple High-speed Service Framework (HSF) applications simultaneously on a single machine, issues such as failure to delete the temporary directory or class loading errors may arise. The specific error message displayed upon HSF startup is as follows.
java.net.BindException: Can't assign requested address

Possible cause

The server port is inconsistent with the actual startup port, leading to the failure in obtaining the current IP address and port.

Solution

Configure the following parameters.
-Dhsf.server.ip=IP address of the instance's local network interface card -Dhsf.server.port=12200
  • -Dhsf.server.ip: Specifies the IP address of the instance's local network interface card.
  • -Dhsf.server.port: Designates the port to bind. Before binding, execute the netstat -tanp command to ensure the port is not already in use.
The configuration methods are as follows.
  • Method 1: Set JVM parameters. For detailed instructions, see set startup command.
  • Method 2: Modify the listening port in conf/server.xml within the Tomcat directory.