server.httpPort

From GTA Connected
Revision as of 05:05, 10 November 2020 by Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = server |type = variable |name = server.httpPort |readonly = true |returnTypes = int |usage = fetch the port number for HTTP connections |returnInfo =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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