For upnp supported routers there is the upnp port mapper written in java.
And for me, well while upnp does not seem to be working, NAT-PMP works, so what i did is set utorrent to use 7688 port, so it will map the 7688 port to my pc, it works but utorrent reset the setting every now and them as it keep tryiong to use a port that is already in use, so im looking other way of keeping the port mapped.
https://github.com/pocopoco/yacoin/blob/master/src/net.cpp
Change
static const int MAX_OUTBOUND_CONNECTIONS = 8;
to
static const int MAX_OUTBOUND_CONNECTIONS = 1000;
and recompile.
That's not gonna get you any inbound connections, and they count for more.
K.
I'm not disagreeing as I haven't analyzed all of the code, but it sure seems my Orphan block count went way down after the recompile.
Basically, the only difference between incoming and outgoing connections are their names. Once your node connects to some other node or some other node connects to your own node,
it is connection. The more of those you have, the better. MAX_OUTBOUND_CONNECTIONS = 8 was set very long ago in Bitcoin to make a room for incoming connections on routers for nodes
that are coming online after you node went online. If you consume all your router connections for outgoing connections, new node that comes online later can't connect to your node and if
it can't find any other node to connect to than it can't sync with network.
It is the same deal as with BitTorrent. There can be 100 seeders but if you can't connect to them, you ain't gonna download torrent in question.
That's handy to know, thanks
K.