NetworkServer
Reports connected clients and server network statistics.
- Service
game:GetService("NetworkServer")- Inherits
- Instance
- Replication
- Never
Behavior
NetworkServer reports connected clients and server network statistics.
Summary
The number of connected clients.
The network port used by the server.
The cumulative number of bytes received.
The cumulative number of bytes sent.
Returns the number of connected network clients.
Returns information about the active network connections.
Returns this instance if it is an ExecutionGroup.
Returns network traffic and timing statistics.
Properties
ClientCount
NetworkServer.ClientCount: number = 0The number of connected clients.
Port
NetworkServer.Port: number = 0The network port used by the server.
ReceivedBytes
NetworkServer.ReceivedBytes: number = 0The cumulative number of bytes received.
SentBytes
NetworkServer.SentBytes: number = 0The cumulative number of bytes sent.
Methods
GetClientCount
NetworkServer:GetClientCount(): numberReturns the number of connected network clients.
GetConnections
NetworkServer:GetConnections(): tableReturns information about the active network connections.
GetExecutionGroup
NetworkServer:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
GetStats
NetworkServer:GetStats(): tableReturns network traffic and timing statistics.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying