How to connect with a specific IP in agar.io?

How to connect with a specific IP in agar.io? - White Facebook Scramble Pieces

I wanted to play agar.io with my friend. He gave me his server IP and I tried to connect with it through the Web Console:

connect("ws://" + prompt("Server IP", "XXX.XXX.XXX.XXX:XXXX")); void 0;

But after prompting this script, console says

"Connecting to ws://37.187.163.240:1502"
socket open
TypeError: b is undefined

What's wrong with this script? Are there any ways to play together?



Best Answer

I checked the agar source code a few days ago and noticed that the code has been changed. The trick you were using doesn't work any more. Now it's much more difficult to connect to the same playground.




Pictures about "How to connect with a specific IP in agar.io?"

How to connect with a specific IP in agar.io? - Grayscale Photography of Chain
How to connect with a specific IP in agar.io? - Close-up Photography of Gray Metal Chainlink Fence
How to connect with a specific IP in agar.io? - Network cables as supply for work of system



Quick Answer about "How to connect with a specific IP in agar.io?"

  • Install a 'Userscript' plugin for your browser. ( Chrome: Tampermonkey, Firefox: Greasemonkey)
  • Intstall the userscript, and click 'Install'. Accept any warnings.
  • Go to agar.io. ...
  • Select a region. ...
  • Go to m.agar.io.
  • Copy ip on first line, with port.
  • Go back to game.
  • Enter IP, hit 'Connect'.


  • Can you play Agar.io with friends?

    Party Mode is the fourth game mode in Agar.io. In order to play this mode you'll have to create a new party or join an existing one. The game will generate a 6-character code (e.g. agar.io/#1A2B3C) that you can send to your friends so they can play with you.

    How do you play agar IP?

    Agar.io uses a classical client-server model. Clients connect to a server. They then can send messages to the server and receive messages from the server - and vice versa. Clients do not communicate with other clients directly but always use the server as a \u201eman in the middle\u201c.

    What server does Agar.io use?

    It was approved for listing on Steam due to community interest; however, the announced game has yet to be released, as the Greenlight program was shut down in June 2017.



    TUTORIAL // PLAY ON AGAR.IO SERVER WITH FRIENDS // PORTFORWARDING




    More answers regarding how to connect with a specific IP in agar.io?

    Answer 2

    There are currently 2 ways of doing this.

    Method 1 (Running console command)

    I am not 100% sure if this works as I do not know anu agar.io servers to connect to but if you enter the command connect in chrome's console (accessible by going to The options menu -> More tools -> Javascript Console)

    Then enter: connect("ws://youriphere:yourporthere");

    Method 2 (Installing script)

    Source

    NOTE: This method allows you to see the IP of the server you are connected to so you can share it with your friends! Yay!

    1. Install a 'Userscript' plugin for your browser. (Chrome: Tampermonkey, Firefox: Greasemonkey)

    2. Intstall the userscript, and click 'Install'. Accept any warnings.

    3. Go to agar.io. If the page is already open, refresh.

    4. Select a region. (Make sure your friends select the same region.)

    5. Go to m.agar.io

    6. Copy ip on first line, with port.

    7. Go back to game

    8. Enter IP, hit 'Connect'.

    9. Profit!

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Pixabay, Pixabay, Kaique Rocha, Brett Sayles