Bitcoin Forum
May 29, 2024, 10:08:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Connecting to wallet on LAN  (Read 1189 times)
mistercoin (OP)
Legendary
*
Offline Offline

Activity: 1044
Merit: 1000


https://r.honeygain.me/XEDDM2B07C


View Profile WWW
October 31, 2014, 01:36:06 PM
 #1

I searched google and the forums, but no luck on a way to show me how to use my wallet on the same LAN, but different PC.

I am developing some apps that use altcoin wallets, the wallets I want to use on my windows PC on the same network and I want to 'hook' in to them from my dev machine (linux). The linux box I created for this has low memory, and is better off if I just use it for deploying the server-end of things.

So, does anyone have any ideas how one would go about using a wallet on the same network? Would I just type in the IP of that PC on the network along with the p2p port of the wallet?


Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
October 31, 2014, 08:42:11 PM
Last edit: November 01, 2014, 06:46:14 AM by Newar
 #2

I think you are looking for the connect command.

https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments  

Most of those you can put in a config file too.



No more posting when caffeine levels are low!

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
October 31, 2014, 11:11:06 PM
 #3

I think you are looking for the connect command.

https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments  

Most of those you can put in a config file too.

Not at all what he is looking for.

Bitcoin Core-based wallets have a communication mechanism, where commands can be issued to the running client over the network, called RPC (remote procedure call).

You first must turn on the server component of Bitcoin by using server=1 in the config file or as a command line option, and also must set an rpcuser/password. Then in the config file you must allow the correct IP address netmasks for only local machines and networks that are allowed to connect. An example config file with these options individually documented is here: http://we.lovebitco.in/bitcoin-qt/configuration-file/

Once that is on, you can test communications locally by running a second bitcoind to issue commands (which also functions as a simple RPC client), commands like "bitcoind help".

For programmatic access, you can take a look at documents like:
https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29
http://upcoder.com/7/bitcoin-rpc-from-python/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!