server.httpPort: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Created page with "{{ScriptItem |endpoint = server |type = variable |name = server.httpPort |readonly = true |returnTypes = int |usage = fetch the port number for HTTP connections |returnInfo =...")
(No difference)

Revision as of 05:05, 10 November 2020

Variable Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read-Only

Available since Server 1.2.0

int server.httpPort

The server.httpPort variable is used to fetch the port number for HTTP connections.

Value

int An integer representing the port number for HTTP connections.
readonly This variable cannot be changed.

Notes

  • If the server's http server is enabled, the port in this function will be used to listen for HTTP connections. If the server's http server is disabled, the server.httpPort will be used to connect to the external HTTP server.

Examples

There aren't any examples for this variable.

Compatibility

There isn't any compatibility information for this variable.

Related

Server Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png httpGet