Bitcoin Forum
May 18, 2024, 03:36:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Litecoin daemon on linux server, need some help ..  (Read 945 times)
GKooi (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 27, 2014, 05:50:50 PM
Last edit: October 27, 2014, 06:11:24 PM by GKooi
 #1

Hello foks,

Im new to linux, debian 7 to be precise and i could use a little help here. It has to with the RPC connection which i cannot get to work...
I am using Litecoind.

-

== GOAL ==

Having a Bitcoin wallet on a server hosting which runs debian 7 which i can remote control by using PHP files to do JSON requests over the RPC protocol. For example the Get_balance command.

== WHAT DO I HAVE SO FAR ==

I have setup the Daemon, working fine
I have the config file for the Daemon, rpcip and rpcport, daemon1 and server1
I have a working PHP file for the client to request from the server

== THE PROBLEM ==

It refuses to complete the request. If the PHP is being loaded in a browser it will finally time out. It doenst seem to connect. It does work if i install the daemon on my home computer with virtual machine running debian 7.

== POSSIBLE CAUSE ==

One of the reasons could be the ports. I have no idea how to open the ports on debian 7. I could use a little help there. I do not know any other causes then the port. Does anyone have a clue about what i did wrong here or at least bring me slightly forward to a solution. Im basicly driving blind.
Bitsky
Hero Member
*****
Offline Offline

Activity: 576
Merit: 514


View Profile
October 28, 2014, 07:59:04 AM
 #2

Not a Deb user, but here are things I'd check on a RH system:

Is Litecoin listening on rpcip:rpcport? Use "netstat" to find out.

Is SELinux running?
Use "getenforce" to check, and "setenforce 0" to test without. If it works then, adjust SELinux (probably by setting httpd_can_network_connect to 1). Do not disable it permanently!

Does the firewall block it?
Check your ruleset to see if packets are allowed between both daemons. I hope you're running Litecoin on 127.0.0.1 and not the public IP (usually localhost connections are not firewalled by default).

Check the logs for errors/warnings.

Run tcpdump to see if any packets are send.

Run strace.

Bounty: Earn up to 68.7 BTC
Like my post? Feel free to drop a tip to 1BitskyZbfR4irjyXDaGAM2wYKQknwX36Y
GKooi (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 28, 2014, 12:34:33 PM
 #3

Thanks for the help so far, i have made it listen on the port i wanted and localhost, so its now listening on 127.0.0.1:1500

However, still no luck.

The getenforce command didnt work (im a total noob in linux)
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!