<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Reza Dehghani</title>
    <description>The latest articles on DEV Community by Reza Dehghani (@hireza).</description>
    <link>https://dev.to/hireza</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1350688%2Ffc9cf6c0-f787-4968-a749-a671852c2ca4.png</url>
      <title>DEV Community: Reza Dehghani</title>
      <link>https://dev.to/hireza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hireza"/>
    <language>en</language>
    <item>
      <title>How to resolve connecting to Github issues (Internet/network issues)</title>
      <dc:creator>Reza Dehghani</dc:creator>
      <pubDate>Fri, 26 Jun 2026 18:25:16 +0000</pubDate>
      <link>https://dev.to/hireza/how-to-resolve-connecting-to-github-issues-internetnetwork-issues-3304</link>
      <guid>https://dev.to/hireza/how-to-resolve-connecting-to-github-issues-internetnetwork-issues-3304</guid>
      <description>&lt;p&gt;If you have a network or internet block in your country and are getting a headache after entering git commands, this tutorial is for you!&lt;/p&gt;

&lt;p&gt;You can just set a proxy/vpn, or use an appropriate DNS to fix this problem, but I am in a situation that can't do those things, and doing a different solution.&lt;/p&gt;

&lt;p&gt;Summary: We can just change GitHub.com's IP address to another IP address of GitHub that's not blocked.&lt;/p&gt;

&lt;p&gt;First of all, just see the IP address that was causing the problem with this command in a Linux environment:&lt;/p&gt;

&lt;p&gt;curl --verbose &lt;a href="https://github.com" rel="noopener noreferrer"&gt;https://github.com&lt;/a&gt;&lt;br&gt;
`&lt;br&gt;
curl --verbose &lt;a href="https://github.com" rel="noopener noreferrer"&gt;https://github.com&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Host github.com:443 was resolved.&lt;/li&gt;
&lt;li&gt;IPv6: (none)&lt;/li&gt;
&lt;li&gt;IPv4: 140.82.121.4&lt;/li&gt;
&lt;li&gt;  Trying 140.82.121.4:443...
`&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see that the &lt;strong&gt;140.82.121.4&lt;/strong&gt; IP address of github.com was blocked. To test a new IP address, we can pick up an IP address from the approach below.&lt;/p&gt;

&lt;p&gt;First of all, see the GitHub.com IP ranges.&lt;br&gt;
In a Linux environment:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install the jq package using the command below for filtering the results.&lt;br&gt;
sudo apt install jq&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Get the IP ranges with below command&lt;/p&gt;
&lt;h1&gt;
  
  
  Get only the Git IP ranges
&lt;/h1&gt;

&lt;p&gt;curl -s &lt;a href="https://api.github.com/meta" rel="noopener noreferrer"&gt;https://api.github.com/meta&lt;/a&gt; | jq -r '.git[]'&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Get only the Web IP ranges
&lt;/h1&gt;

&lt;p&gt;curl -s &lt;a href="https://api.github.com/meta" rel="noopener noreferrer"&gt;https://api.github.com/meta&lt;/a&gt; | jq -r '.web[]'&lt;/p&gt;

&lt;p&gt;Then you can test the IP address with the following command:&lt;/p&gt;

&lt;p&gt;curl --verbose --header "Host: github.com" https://&lt;strong&gt;140.82.121.4&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Changing the IP address with the results of the curl command ip address.&lt;/p&gt;

&lt;p&gt;Last to change the IP address system worldwide, you can use this approach:&lt;br&gt;
vi /etc/hosts&lt;/p&gt;

&lt;p&gt;and then map a new IP address with github.com&lt;/p&gt;

&lt;p&gt;vi /etc/hosts&lt;br&gt;
140.82.121.4 github.com&lt;/p&gt;

</description>
      <category>internetblock</category>
      <category>networkblock</category>
      <category>github</category>
      <category>git</category>
    </item>
  </channel>
</rss>
