Post
Topic
Board Altcoin Discussion
Re: Help with DNS Seeder and hardcoded Seednodes
by
bigreddmachine
on 20/09/2014, 14:06:29 UTC

104.131.18.228 is the IP address of my seednode as is configured as follows;

unsigned int pnSeed[] =
{
      0x688312e4
};


I am fairly certain this is your problem.  I believe that you have to reverse the IP address, so your pnSeed should be 0xe4128368.

Here is a perl script I found that will do this for you:

Code:
#!/usr/bin/perl

# Twobits twobit integer dotted quad to reverse hex convertor
#  designed for q&d use to put seeds into pnSeeds in *coins

my $ip;

if (@ARGV) {
    $ip = shift @ARGV;
} else {
    print "Enter an (dotted quad) ip address: ";
    chomp( $ip = );
}

printf "0x%08x\n",  unpack 'N', pack 'C4', reverse split '\.', $ip;

I got that from this Bitcointalk comment by twobits:
https://bitcointalk.org/index.php?topic=34586.msg1983185#msg1983185