This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||
|
4D v20 R8
PortNumber
|
/ Preferences4D / BuildApp / CS / PortNumber |
||
Port number
This key contains the TCP port number of the desired server. By default, the port number is set to 19813 and it is generally not required to specify it. This key is required when the server’s port number has been modified.
When it is specified, the TCP port number is added to the IP address stored in a file named “EnginedServer.4Dlink,” which is located in the Database folder of the client application.
Warning: This key only modifies the port number on the Client side. On the Server side, the port number specified in the 4D database generating the application is stored. To use a custom port number, use the command before calling the command. For example, to specify the port 21000:
tempport:=Get database parameter(Client Server Port ID)
SET DATABASE PARAMETER(Client Server Port ID;21000)
BUILD APPLICATION("")
SET DATABASE PARAMETER(Client Server Port ID;tempport)
Product: 4D
Theme: CS
4D XML Keys BuildApplication ( 4D v20 R8)