Kodi Community Forum

Full Version: How to block specific IPs / IP ranges
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I'd love to know if there's a way to block certain IPs or IP ranges in XBMC or if there's a plugin to accomplish that. The reason behind this is, that I have sometimes problems watching LiveStreams vom Twitch.TV or videos on YouTube. The solution I've found is blocking the IP ranges and I've tried that on my computer (blocked the IP ranges with the windows firewall) and before that I was only able to watch 720p+ streams and after blocking these ranges I'm able to watch 1080p+ WHILE downloading something. The explanation I've found is the following
Quote:It appears that the and the range belongs to Google. Someone revealed that YouTube video requests were utilizing intentional bandwidth throttling that is actually built into their (YouTube) system. Once these ranges are blocked, YouTube's player logic will fall back to Google's datacenters and stream at beautiful speeds.
So yea, now I'd love to do the same on my XBMC system so that I get the same benefit there Smile
Using OpenELEC btw
Use iptables to create firewall rules to block the ranges. On OpenELEC you would add the following to your autostart.sh

iptables -I OUTPUT -p tcp --dest -j DROP
iptables -I OUTPUT -p tcp --dest -j DROP