<p>You need to forward the port if you're in a LAN.</p>

<p>You need to add the IP of the server who is making the JSON-RPC call to the bitcoin.config file such as below:</p>

<pre><code>rpcallowip= IPMakingTheRequest
</code></pre>

CC BY-SA 3.0
2014-06-06T09:32:55.723Z
2014-06-06T12:04:57.350Z
2014-06-06T12:04:57.350Z
user112927
<p>I used the bitcoin client but i want to connect to it using public ip adress not localhost.</p>

<p>From that machine i could reach bitcoin using localhost but when I am using public ip address with the ports required it is not working.</p>

<ul>
<li>Firewall is down on that machine.</li>
</ul>

<p>I added this line to bitcoin.conf</p>

<ul>
<li>allowrpc=mypublicaddress</li>
</ul>

<p>Also my debug window I see these two lines</p>

<ul>
<li>2014-06-05 15:04:43 AddLocal(mylocalAddress:18333,1)</li>
<li>2014-06-05 15:04:44 AddLocal(myPublicAdress:18333,4)</li>
</ul>

<bitcoin-core><client><json-rpc>
How can I connect to bitcoin-qt client with public ip address
Rıfat Erdem Sahin
# How can I connect to bitcoin-qt client with public ip address

(Asked by: username_0 on 2014-06-06)

I used the bitcoin client but i want to connect to it using public ip adress not localhost.

From that machine i could reach bitcoin using localhost but when I am using public ip address with the ports required it is not working.

* Firewall is down on that machine.

I added this line to bitcoin.conf

* allowrpc=mypublicaddress

Also my debug window I see these two lines

* 2014-06-05 15:04:43 AddLocal(mylocalAddress:18333,1)
* 2014-06-05 15:04:44 AddLocal(myPublicAdress:18333,4)

**Tags:** bitcoin-core, client, json-rpc


---

## 1 answers

### Answer by username_1 on 2014-06-06. Score: 3 | Accepted answer

You need to forward the port if you're in a LAN.
You need to add the IP of the server who is making the JSON-RPC call to the bitcoin.config file such as below:
rpcallowip= IPMakingTheRequest


---

