MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetClientIP

Method GetClientIP

src/network/network_server.cpp:1919–1922  ·  view source on GitHub ↗

* Get the IP address/hostname of the connected client. * @return The IP address. */

Source from the content-addressed store, hash-verified

1917 * @return The IP address.
1918 */
1919std::string_view ServerNetworkGameSocketHandler::GetClientIP()
1920{
1921 return this->client_address.GetHostname();
1922}
1923
1924/** Show the status message of all clients on the console. */
1925void NetworkServerShowStatusToConsole()

Callers 7

Receive_CLIENT_MAP_OKMethod · 0.95
Receive_CLIENT_CHATMethod · 0.95
NetworkServer_TickFunction · 0.80
NetworkServerKickOrBanIPFunction · 0.80
NetworkPrintClientsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected