This Minecraft tutorial explains how to use the /wsserver command with screenshots and step-by-step instructions.
The /wsserver command attempts to connect to the websocket server on the provided URL (see also /connect). Let's explore how to use this game command.
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
WSServer Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the syntax to attempt to connect to the websocket server on the provided URL is:
/wsserver <serverUri>
Definitions
- serverUri is the URL of the websocket server to attempt to connect to.
WSServer Command in Xbox One Edition
In Minecraft Xbox One Edition, the syntax to attempt to connect to the websocket server on the provided URL is:
/wsserver <serverUri>
Definitions
- serverUri is the URL of the websocket server to attempt to connect to.
WSServer Command in PS4 Edition
In Minecraft PS4 Edition, the syntax to attempt to connect to the websocket server on the provided URL is:
/wsserver <serverUri>
Definitions
- serverUri is the URL of the websocket server to attempt to connect to.
WSServer Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, the syntax to attempt to connect to the websocket server on the provided URL is:
/wsserver <serverUri>
Definitions
- serverUri is the URL of the websocket server to attempt to connect to.
WSServer Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, the syntax to attempt to connect to the websocket server on the provided URL is:
/wsserver <serverUri>
Definitions
- serverUri is the URL of the websocket server to attempt to connect to.
WSServer Command in Minecraft Education Edition
In Minecraft Education Edition, the syntax to attempt to connect to the websocket server on the provided URL is:
/wsserver <serverUri>
Definitions
- serverUri is the URL of the websocket server to attempt to connect to.
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Pocket Edition (PE)
To connect to the server called minecraftserver.example.com using the default port in Minecraft PE:
/wsserver minecraftserver.example.com
To connect to the server called minecraftserver.example.com on port 19132:
/wsserver minecraftserver.example.com:19132
To connect to the server at 198.162.0.10 on port 19132:
/wsserver 198.162.0.10:19132
TIP: The URL minecraftserver.example.com, minecraftserver.example.com:19132 and 198.162.0.10:19132 are fictious servers and used for demonstration purposes.
Example in Xbox One Edition
To connect to the server called mcserver.example.com using the default port in Minecraft Xbox One Edition:
/wsserver mcserver.example.com
To connect to the server called mcserver.example.com on port 19132:
/wsserver mcserver.example.com:19132
To connect to the server at 198.162.0.15 on port 19132:
/wsserver 198.162.0.15:19132
TIP: The URL mcserver.example.com, mcserver.example.com:19132 and 198.162.0.15:19132 are fictious servers and used for demonstration purposes.
Example in PS4 Edition
To connect to the server called ps4server.example.com using the default port in Minecraft PS4 Edition:
/wsserver ps4server.example.com
To connect to the server called ps4server.example.com on port 19132:
/wsserver ps4server.example.com:19132
To connect to the server at 198.162.0.14 on port 19132:
/wsserver 198.162.0.14:19132
TIP: The URL ps4server.example.com, ps4server.example.com:19132 and 198.162.0.14:19132 are fictious servers and used for demonstration purposes.
Example in Nintendo Switch Edition
To connect to the server called server.example.com using the default port in Minecraft Nintendo Switch Edition:
/wsserver server.example.com
To connect to the server called server.example.com on port 19132:
/wsserver server.example.com:19132
To connect to the server at 198.162.1.7 on port 19132:
/wsserver 198.162.1.7:19132
TIP: The URL server.example.com, server.example.com:19132 and 198.162.1.7:19132 are fictious servers and used for demonstration purposes.
Example in Windows 10 Edition
To connect to the server called bestserver.example.com using the default port in Minecraft Windows 10 Edition:
/wsserver bestserver.example.com
To connect to the server called bestserver.example.com on port 19132:
/wsserver bestserver.example.com:19132
To connect to the server at 192.168.1.4 on port 19132:
/wsserver 192.168.1.4:19132
TIP: The URL bestserver.example.com, bestserver.example.com:19132 and 192.168.1.4:19132 are fictious servers and used for demonstration purposes.
Example in Education Edition
To connect to the server called teacher.example.com using the default port in Minecraft Education Edition:
/wsserver teacher.example.com
To connect to the server called teacher.example.com on port 19132:
/wsserver teacher.example.com:19132
To connect to the server at 198.162.1.8 on port 19132:
/wsserver 198.162.1.8:19132
TIP: The URL teacher.example.com, teacher.example.com:19132 and 198.162.1.8:19132 are fictious servers and used for demonstration purposes.
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the game will try to connect to the server.