server.httpPort: Difference between revisions
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 edit summary |
||
Line 7: | Line 7: | ||
|usage = fetch the port number for HTTP connections | |usage = fetch the port number for HTTP connections | ||
|returnInfo = an integer representing the port number for HTTP connections | |returnInfo = an integer representing the port number for HTTP connections | ||
|notes = If the server's [[server. | |notes = If the server's [[server.httpServer|http server]] is enabled, the port in this function will be used to listen for HTTP connections. If the server's [[server.httpServer|http server]] is disabled, the server.httpPort will be used to connect to the external HTTP server. | ||
|since = 1.2.0 | |since = 1.2.0 | ||
}} | }} |
Latest revision as of 05:05, 10 November 2020
Variable
Server Only
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
httpGet