# \[Help\] Check is IP is twitch chat server

**URL:** <https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625>\
**Category:** Chat and IRC\
**Created:** [June 26, 2015, 1:53am UTC](https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625 "2015-06-26T01:53:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SReject](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@SReject](https://discuss.dev.twitch.com/u/SReject)\
**Post date:** [June 26, 2015, 1:53am UTC](https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625/1 "2015-06-26T01:53:14Z")

</div>

Is there a way to check if a specific IP is a twitch server. I need a way to check if a user-specific address(can be an address such as [tmi.twitch.tv](http://tmi.twitch.tv) or ip) is a twitch server via the webapi

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 26, 2015, 9:09am UTC](https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625/2 "2015-06-26T09:09:52Z")

</div>

I don’t understand your use case for checking a IP returned by a DNS Lookup to [tmi.twitch.tv](http://tmi.twitch.tv) belongs to Twitch or not…

The only published list is the chat server list:  
[https://api.twitch.tv/api/channels/barrycarlyon/chat\_properties](https://api.twitch.tv/api/channels/barrycarlyon/chat_properties)

Outside of that you’d have to DIG the domain name and see what the round robin returns.

Ultimately is there anyway to determine a host lookup IP belongs to who you think…

Although what do you mean:

> [@SReject](#):
>
> is a twitch server via the webapi

Kraken (and others) is on [api.twitch.tv](http://api.twitch.tv)  
TMI is on [tmi.twitch.tv](http://tmi.twitch.tv)  
Chat is on [irc.twitch.tv](http://irc.twitch.tv)

The clue is in the name…

---

<div class="post-metadata">

**Author:** ![SReject](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@SReject](https://discuss.dev.twitch.com/u/SReject)\
**Post date:** [June 26, 2015, 10:59am UTC](https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625/3 "2015-06-26T10:59:15Z")

</div>

The use case is general-use IRC clients looking to distinguish twitch chat from other IRC networks for purposes of the client handling twitch differently.

To explain better. I’m looking for a way to tell if a user-input string is a twitch-chat server. For host names its easy to check the text against `irc.twitch.tv` and `tmi.twitch.tv`. But what if the user inputs an ip address, say to connect to a specific chat server such as the group-chat servers? Is there a way to determine if said specified IP address is a twitch chat/tmi server.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 26, 2015, 1:00pm UTC](https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625/4 "2015-06-26T13:00:01Z")

</div>

> [@BarryCarlyon](#):
>
> The only published list is the chat server list: [https://api.twitch.tv/api/channels/barrycarlyon/chat\_properties](https://api.twitch.tv/api/channels/barrycarlyon/chat_properties)

All the Twitch Chat Servers IP’s are listed here.

Group Chat IP’s are in the Group chat response:

[http://blog.bashtech.net/twitch-group-chat-irc/](http://blog.bashtech.net/twitch-group-chat-irc/)

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [July 26, 2015, 1:00pm UTC](https://discuss.dev.twitch.com/t/help-check-is-ip-is-twitch-chat-server/2625/5 "2015-07-26T13:00:32Z")

</div>

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