Bitcoin Forum
November 14, 2024, 07:25:13 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't connect my two PC's for Main Net mining (BOUNTY??)  (Read 706 times)
silidons (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
February 28, 2014, 02:31:02 AM
Last edit: March 03, 2014, 05:46:30 AM by silidons
 #1

I've been fucking around trying to make my own (well, copying the litecoin source) cryptocurrency for shits and giggles, I'm not a programmer (well, I'm learning, also why I'm doing this),

I'm basically to the point where I need to connect a second computer to my development computer in order to start mining testnet coins.  I cannot for the life of me get them to connect to each other, my ./coin getinfo command (I'm running Ubuntu on both of the computers) always shows 0 connections and therefore I cannot start mining from my second computer.  I have port-forwarded all the ports (P2P, Testnet, RPC).

The laptop is being used as the development PC, and initially was connected to my network via wifi, but now I even connected it to the router directly to see if it changed anything, and even though it gave it a new IP address, I still can't connect them.

Any help would be appreciated.  Sorry if some of it doesn't make sense, I don't know entirely what I'm doing.

UPDATE: I CAN'T CONNECT ON THE MAIN NET...BUT IT LET ME CONNECT ON TESTNET!?
Still don't know what the problem is.  I cannot compile on my development computer using

make -f makefile.unix USE_UPNP=-

The compiler will complain about various UPNP problems, and I don't know how to fix it.  I installed miniupnpc and am still having a problem compiling it that way.  But when I compiled them for testnet mining, I did not use the USE_UPNP=- tag, and was able to connect them for -testnet mining.  Do I need USE_UPNP=- on the end in order for them to connect together on the main RPC port?

Just using the normal
./coin -connect=xxx.xxx.x.x

command does not connect them, BUT I am able to ping the computers from the command line!!  Anyone have any damn idea what the problem is!?  I portforwarded all the ports, and like I said the firewall is inactive!
nirom
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
March 01, 2014, 12:50:29 AM
 #2

If you are inside the same subnet (192.168.x.x or similar) you should have to port-forward anything as the traffic won't cross the router. You might have a firewall issue in ubuntu though. Try to temporarely disable the ubuntu firewall to see if they connect.

Also, you should try to add each nodes addresses in the debug console using the following command in the two clients.

addnode <ip of other node> add

Also disabling the Map ports using UPnP might help.

Hope it helps you.

silidons (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 01, 2014, 02:43:08 AM
 #3

If you are inside the same subnet (192.168.x.x or similar) you should have to port-forward anything as the traffic won't cross the router. You might have a firewall issue in ubuntu though. Try to temporarely disable the ubuntu firewall to see if they connect.

Also, you should try to add each nodes addresses in the debug console using the following command in the two clients.

addnode <ip of other node> add

Also disabling the Map ports using UPnP might help.

Hope it helps you.



Yeah I actually figured it out not long after you posted this, what was strange was that on my home PC I was able to ping my laptop, but my laptop could not ping my home PC.  It had to do with the firewall and I was able to find out the commands in order to fix it, the problem is solved thanks!
silidons (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 01, 2014, 03:57:23 AM
 #4

Well, now I can't connect them again!  I don't know what the problem is.  I was trying to connect without the -testnet command, and it won't work.  It also won't work with -testnet either again!

Not sure what the damn problem is. 

sudo ufw status verbose shows both inactive!
silidons (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 02, 2014, 05:44:26 AM
 #5

Still don't know what the problem is.  I cannot compile on my development computer using

make -f makefile.unix USE_UPNP=-

The compiler will complain about various UPNP problems, and I don't know how to fix it.  I installed miniupnpc and am still having a problem compiling it that way.  But when I compiled them for testnet mining, I did not use the USE_UPNP=- tag, and was able to connect them for -testnet mining.  Do I need USE_UPNP=- on the end in order for them to connect together on the main RPC port?

Just using the normal
./coin -connect=xxx.xxx.x.x

command does not connect them, BUT I am able to ping the computers from the command line!!  Anyone have any damn idea what the problem is!?  I portforwarded all the ports, and like I said the firewall is inactive!
silidons (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 03, 2014, 05:45:33 AM
 #6

REALLY FUCKING TIRED OF THIS WAIT 360 SECONDS SHIT LOL

every time i fucking log in and post a first reply to anything, it gives me that error (even though I haven't posted for over 8 hours) and of course you can't hit back and have all of your text saved like on normal forums...but i digress.

i was able to fix the USE_UPNP=- problem.  but here we go again!  can't connect the two PC's for fuck all.  sudo ufw status verbose shows inactive, i can ping each PC manually perfectly fine, i added the nodes of each, tried a wired & wireless connection, won't FUCKING CONNECT!  getting so mad LOL been trying to fix this shit for days.  if someone can help me through this i will send some coins your way...(saving this post watch the error happen again LOL)
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!