Bitcoin Forum
June 14, 2024, 05:58:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Use my PC as a rpc-server (Quarkcoin) ?  (Read 782 times)
RoooooR (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC


View Profile
January 11, 2014, 07:01:42 PM
 #1

I want to use my computer(quarkcoin-qt, not daemon) as a rpc-server to create a web application. Here is my .conf file :
Code:
listen=1
maxconnections=32
gen=1
genproclimit=-1
server=1
daemon=1
rpcuser=qrkuser99
rpcpassword=qrkuser9988

Here is test.php on my web site:
Code:
<?php 
require_once 'jsonRPCClient.php';
$coin = new   jsonRPCClient('http://qrkuser99:qrkuser9988@IP:8910');
$json =$coin->getinfo();        
var_dump($json);
echo 
"</pre>";  
?>

What we have to write to IP on php file ?


            █ █ █ █ █
         ██           ██
       ██     █ █ █ █   ██
     ██    ██        ██
   ██   ██               
  ██   ██     ████████                  ██████████
            ███          ██   █████████     ██      ██████  ██   ███████  ██    ███   ███████
 ██   ██    ███              ██      ███    ██      ██          ███       ██   ███  ██
 ██   ██    ███  ██████  ██  ██      ███    ██      ██      ██  ███       ██  ███   ██
            ███      ██  ██  ██      ███    ██      ██      ██  ███       ██████     ███████
 ██   ██    ███      ██  ██  ██      ███    ██      ██      ██  ███       ██  ██           ██
             ██      ██  ██  ██      ███    ██      ██      ██  ███       ██   ███         ██
 ██   ██      ███████    ██   █████████     ██      ██      ██   ███████  ██    ███  ███████
  ██   ██                           ███
   ██    ██          ██            ███
     ██    ██ █ █ █ █   ██
       ██             ██
          █ █ █ █ █ █
























Telegram     Facebook     Twitter     Medium
-------------------------------------------------------------------
.WEBSITE. |█| .WHITEPAPER.












......BOUNTY......
-----------------------------------
..ANN THREAD..
XBladeRunner
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 11, 2014, 09:05:38 PM
 #2

if the php is running on the same computer as the daemon or wallet it will be 127.0.0.1.

Also need to add to .conf:

rpcport=8910
RoooooR (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC


View Profile
January 11, 2014, 09:31:40 PM
 #3

if the php is running on the same computer as the daemon or wallet it will be 127.0.0.1.

Also need to add to .conf:

rpcport=8910

Php is on a different hosting (godaddy)
QT is on my pc.

I added the port, write my pc IP to IP place on Php, but nothing changed ? Where am I mistaken ?


            █ █ █ █ █
         ██           ██
       ██     █ █ █ █   ██
     ██    ██        ██
   ██   ██               
  ██   ██     ████████                  ██████████
            ███          ██   █████████     ██      ██████  ██   ███████  ██    ███   ███████
 ██   ██    ███              ██      ███    ██      ██          ███       ██   ███  ██
 ██   ██    ███  ██████  ██  ██      ███    ██      ██      ██  ███       ██  ███   ██
            ███      ██  ██  ██      ███    ██      ██      ██  ███       ██████     ███████
 ██   ██    ███      ██  ██  ██      ███    ██      ██      ██  ███       ██  ██           ██
             ██      ██  ██  ██      ███    ██      ██      ██  ███       ██   ███         ██
 ██   ██      ███████    ██   █████████     ██      ██      ██   ███████  ██    ███  ███████
  ██   ██                           ███
   ██    ██          ██            ███
     ██    ██ █ █ █ █   ██
       ██             ██
          █ █ █ █ █ █
























Telegram     Facebook     Twitter     Medium
-------------------------------------------------------------------
.WEBSITE. |█| .WHITEPAPER.












......BOUNTY......
-----------------------------------
..ANN THREAD..
XBladeRunner
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 11, 2014, 10:08:40 PM
 #4

I assume your PC is behind a router? If so your router will have to forward the rpc port to
your PC and you will use your WAN IP to connect to. ipchicken.com will give you your WAN IP
if you don't know it. Make sure your password is stout, this is very insecure. At the very least
use rpc ssl.
RoooooR (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC


View Profile
January 11, 2014, 10:15:34 PM
 #5

I assume your PC is behind a router? If so your router will have to forward the rpc port to
your PC and you will use your WAN IP to connect to. ipchicken.com will give you your WAN IP
if you don't know it. Make sure your password is stout, this is very insecure. At the very least
use rpc ssl.

I got the WAN Ip, it's same with my IP. Nothing changed. I'll use a linux server. Thanks !


            █ █ █ █ █
         ██           ██
       ██     █ █ █ █   ██
     ██    ██        ██
   ██   ██               
  ██   ██     ████████                  ██████████
            ███          ██   █████████     ██      ██████  ██   ███████  ██    ███   ███████
 ██   ██    ███              ██      ███    ██      ██          ███       ██   ███  ██
 ██   ██    ███  ██████  ██  ██      ███    ██      ██      ██  ███       ██  ███   ██
            ███      ██  ██  ██      ███    ██      ██      ██  ███       ██████     ███████
 ██   ██    ███      ██  ██  ██      ███    ██      ██      ██  ███       ██  ██           ██
             ██      ██  ██  ██      ███    ██      ██      ██  ███       ██   ███         ██
 ██   ██      ███████    ██   █████████     ██      ██      ██   ███████  ██    ███  ███████
  ██   ██                           ███
   ██    ██          ██            ███
     ██    ██ █ █ █ █   ██
       ██             ██
          █ █ █ █ █ █
























Telegram     Facebook     Twitter     Medium
-------------------------------------------------------------------
.WEBSITE. |█| .WHITEPAPER.












......BOUNTY......
-----------------------------------
..ANN THREAD..
r47351
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
January 11, 2014, 10:24:32 PM
 #6

If your mining machine is not the same as the wallet machine, you'll need an rpcallowip line:

rpcallowip=192.168.1.* (This allows any machine with the IP of 192.16.1.* to connect)

For my php apps, I forward a port on the FW to the webserver, which connects via local lan to the wallet server.

The wallet server needs the rpcallowip line to accept connections from anything other than localhost.

I have some example code and conf files too if you need more info.
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!