Search code examples
rubyrubygemsruby-1.9.3ruby-2.1

IPv4 address expects 4 bytes but 1 bytes error when gem install


I got IPv4 address expects 4 bytes but 1 bytes error when I try to gem install

Here is my gem env:

  • RUBYGEMS VERSION: 2.3.0
  • RUBY VERSION: 1.9.3 (2014-11-13 patchlevel 551) [i386-mingw32]

Anyone know how to solved this?

Thanks!


Solution

  • The issue is related to my Internet connection. The issue resolved once I set APN protocol of my connection to IPv4/IPv6. Previously only IPv4.