You can play 2a2s by adding the server in the Minecraft launcher.
On Minecraft Java Edition, open the Minecraft launcher. Click “Multiplayer” and then “Add Server” and enter the 2a2s IP Address 51.161.57.1:25628 in the “Server Address”. Then press “Done” and start playing.