Commands/dedicatedwsserver
Minecraft Wiki article. Categories: Bedrock_Edition, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/dedicatedwsserver on the Minecraft Wiki. Mirrored from revision 3341557. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
This feature is exclusive to Bedrock Edition.
/dedicatedwsserver{
"title": "<code>/dedicatedwsserver</code>",
"rows": [
{
"field": "1",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Allows players to connect to a dedicated WebSocket server, primarily used by developers to implement custom scripts or modifications to the client through WebSocket connections.
Syntax
/dedicatedwsserver <server-address> <port>- Attempts to connect to a WebSocket server at the specified address and port.
Arguments
server: string: basic_string
- The IP address or the host name of the WebSocket server.
port: int: int
- The port through which the connection is made.
Result
| Command | Trigger | Bedrock Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Example
- Connect to a WebSocket server at the IP-address
192.168.1.10and port3000./dedicatedwsserver 192.168.1.10 3000
History
| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.19.10 | Preview 1.19.10.20 | Added /dedicatedwsserver. | |||||
Navigation
Sources
- Commands/dedicatedwsserver — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3341557.