Author

Topic: Use my PC as a rpc-server (Quarkcoin) ? (Read 780 times)

member
Activity: 70
Merit: 10
January 11, 2014, 06: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.
legendary
Activity: 1008
Merit: 1000
GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC
January 11, 2014, 06: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 !
newbie
Activity: 34
Merit: 0
January 11, 2014, 06: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.
legendary
Activity: 1008
Merit: 1000
GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC
January 11, 2014, 05: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 ?
newbie
Activity: 34
Merit: 0
January 11, 2014, 05: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
legendary
Activity: 1008
Merit: 1000
GigTricks.io | A CRYPTO ECOSYSTEM FOR ON-DEMAND EC
January 11, 2014, 03: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:
require_once 'jsonRPCClient.php';
$coin = new   jsonRPCClient('http://qrkuser99:qrkuser9988@IP:8910');
$json =$coin->getinfo();        
var_dump($json);
echo 
"";  
?>

What we have to write to IP on php file ?
Jump to: