# Upgrading chat servers, new IPs

**URL:** <https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836>\
**Category:** Chat and IRC\
**Created:** [March 15, 2015, 7:35pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836 "2015-03-15T19:35:08Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![brildum](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@brildum](https://discuss.dev.twitch.com/u/brildum)\
**Post date:** [March 15, 2015, 7:35pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/1 "2015-03-15T19:35:08Z")

</div>

FYI, I wanted to give you a heads up that we finally received some bigger, faster servers for the chat system. We plan on rolling them out over the next 24 hours. Unfortunately, our systems are set up that new servers need new IPs so you’ll need to update your bots to use the correct IPs.

Since we’ll be adding boxes and taking away boxes in several steps (for a graceful rotation), I’d recommend updating your bots use the [https://api.twitch.tv/api/channels/some\_channel/chat\_properties](https://api.twitch.tv/api/channels/some_channel/chat_properties) (replace some\_channel with an actual channel name) API which returns the list of servers available for a specific channel. This way we are not required to coordinate server changes with bot updates.

In any case, I’ll also post updates here when we have added / removed the servers during the migration.

Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [March 15, 2015, 8:06pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/4 "2015-03-15T20:06:09Z")

</div>



---

<div class="post-metadata">

**Author:** ![night](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/night/32/1613_2.png) [@night](https://discuss.dev.twitch.com/u/night)\
**Post date:** [March 15, 2015, 8:43pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/5 "2015-03-15T20:43:31Z")

</div>

Can you make sure port 6667 is open on the new servers, as we’ve evidenced in the past that port 6667 is firewalled with every new server added to the chat cluster.

---

<div class="post-metadata">

**Author:** ![moocat](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/moocat/32/116_2.png) [@moocat](https://discuss.dev.twitch.com/u/moocat)\
**Post date:** [March 16, 2015, 3:09am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/6 "2015-03-16T03:09:55Z")

</div>

So, what are the new IPs? Can we connect to them already, and will they be connected/synced with the older servers while those are taken down?

Using chat\_properties and shooting off tens of thousands of requests for every channel you want to join is not an option.

I also assume you’re not separating a channel to a specific server, like the horrible system on JTV, and giving us 24 hour notice with a forum post? Cause that’d be bad.

---

<div class="post-metadata">

**Author:** ![brildum](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@brildum](https://discuss.dev.twitch.com/u/brildum)\
**Post date:** [March 16, 2015, 3:18am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/7 "2015-03-16T03:18:08Z")

</div>

The chat\_properties API will return one of 2 sets of servers (either event or main chat). The new IPs aren’t set in stone yet, so I’ll add to this thread as we roll things out.

You can probably just hardcode:

[https://api.twitch.tv/api/channels/night/chat\_properties](https://api.twitch.tv/api/channels/night/chat_properties) (main chat cluster)  
[https://api.twitch.tv/api/channels/riotgames/chat\_properties](https://api.twitch.tv/api/channels/riotgames/chat_properties) (event chat cluster)

This will be a “graceful” transition, so we will not split rooms as we add new servers.

---

<div class="post-metadata">

**Author:** ![moocat](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/moocat/32/116_2.png) [@moocat](https://discuss.dev.twitch.com/u/moocat)\
**Post date:** [March 16, 2015, 3:20am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/8 "2015-03-16T03:20:25Z")

</div>

Alright, thanks, it shouldn’t be an issue then

---

<div class="post-metadata">

**Author:** ![brildum](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@brildum](https://discuss.dev.twitch.com/u/brildum)\
**Post date:** [March 17, 2015, 1:11am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/9 "2015-03-17T01:11:44Z")

</div>

The first batch of new servers are going out any moment:

### Main cluster

Adding:

- 192.16.64.152
- 192.16.64.145
- 192.16.64.144
- 192.16.64.11  
Removing:
- 199.9.253.165
- 199.9.249.252
- 199.9.249.253
- 199.9.252.120

### Event cluster

Adding:

- 192.16.64.150
- 192.16.64.143  
Removing:
- 199.9.252.26
- 199.9.251.213

---

<div class="post-metadata">

**Author:** ![moocat](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/moocat/32/116_2.png) [@moocat](https://discuss.dev.twitch.com/u/moocat)\
**Post date:** [March 17, 2015, 4:20am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/10 "2015-03-17T04:20:54Z")

</div>

Looks to be working fine. I just switched the old IP with a new, and I’ve had no issues yet.

---

<div class="post-metadata">

**Author:** ![brildum](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@brildum](https://discuss.dev.twitch.com/u/brildum)\
**Post date:** [March 17, 2015, 10:30pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/11 "2015-03-17T22:30:37Z")

</div>

The second batch of new servers have gone out:

### Main cluster

Adding:

- 192.16.64.155
- 192.16.64.51
- 192.16.64.37
- 192.16.64.45  
Removing:
- 199.9.250.229
- 199.9.250.239
- 199.9.252.28
- 199.9.249.126

### Event cluster

Adding:

- 199.9.252.54
- 192.16.71.236
- 192.16.71.221  
Removing:
- 199.9.250.117
- 199.9.249.117
- 199.9.249.121

---

<div class="post-metadata">

**Author:** ![brildum](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@brildum](https://discuss.dev.twitch.com/u/brildum)\
**Post date:** [March 18, 2015, 12:16am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/12 "2015-03-18T00:16:42Z")

</div>

The last batch of new servers have gone out:

### Main cluster

Adding:

- 199.9.248.236
- 192.16.71.237
- 199.9.251.168
- 192.16.64.146  
Removing:
- 199.9.249.142
- 199.9.249.222
- 199.9.251.189

---

<div class="post-metadata">

**Author:** ![omexlu](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/omexlu/32/353_2.png) [@omexlu](https://discuss.dev.twitch.com/u/omexlu)\
**Post date:** [March 18, 2015, 4:58pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/13 "2015-03-18T16:58:56Z")

</div>

Hello,

I have tried to connect my bot using:  
192.16.64.145:80 and 192.16.64.145:443

But i was not able to connect? What IP Port must i use?

[https://api.twitch.tv/api/channels/terrible\_\_khons/chat\_properties](https://api.twitch.tv/api/channels/terrible__khons/chat_properties)

EDIT: it runs now with:  
[irc.twitch.tv:443](http://irc.twitch.tv:443)

---

<div class="post-metadata">

**Author:** ![NullBy7e1](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@NullBy7e1](https://discuss.dev.twitch.com/u/NullBy7e1)\
**Post date:** [March 23, 2015, 11:45am UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/14 "2015-03-23T11:45:29Z")

</div>

My bots use [irc.twitch.tv](http://irc.twitch.tv) - what exactly is the use of these chat servers for bots?

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [March 23, 2015, 8:17pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/15 "2015-03-23T20:17:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![brildum](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@brildum](https://discuss.dev.twitch.com/u/brildum)\
**Post date:** [April 22, 2015, 8:17pm UTC](https://discuss.dev.twitch.com/t/upgrading-chat-servers-new-ips/1836/16 "2015-04-22T20:17:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
