How to establish connection for mining testnet blocks? I am new here. I really want to know how scryptcoins work so i wanted to create and altcoin to learn on something. 

I learned c++ years ago so i know i have some basic knowledge but sometimes i get stuck, and i need help.

Now i have a problem. I created my coin. I wanted to start on testnet on local network beetwen 2 pcs.

Server PC:

./xxxd -testnet -listen=1 -server=1 -connect=

Client PC

./xxxd -testnet -connect=

Than tried getinfo:

Conenctions: 0

The two pc can ping each other.

I tried other ways like:

Server PC:

./xxxd -testnet -connect=

Client PC

./xxxd -testnet -connect=



Server PC:

./xxxd -testnet -listen=1 -server=1 -connect=:

Client PC

./xxxd -testnet -connect=:

In getinfo they didn't have any connections. I searched forums, topic and found nothing. 

If you can help me, please write down your oppinion.
The -connect option overrides -listen; if you specify -connect then the daemon does not listen for connections.  So both your hosts are trying to connect to the other, but neither one is accepting connections.

If you use -bind, the daemon will accept connections on a particular interface, even if -connect is also specified.  

So let's suppose the two hosts have IP addresses 192.168.0.1 and 192.168.0.2 respectively.

On host1:

 mycoind -bind=192.168.0.1 -connect=192.168.0.2 -testnet -server


On host2:

 mycoind -bind=192.168.0.2 -connect=192.168.0.1 -testnet -server


I have tested this with bitcoind and it works.

Note that other machines on the 192.168.0 network will be able to connect to either host.  If it is a local network, this should not be a problem.  You will want to make sure that your router will not do port forwarding to port 8333 on either machine.  

You should also check firewall settings on both machines to make sure each will accept incoming connections from the other on port 8333.  (Actually, if just one of them will accept connections from the other, that should be sufficient.)