fixed bug when using greeter in internal network.

Ignore-this: 644634ed68eb1253c8c10a02f11a556d

No point in sending two greet requests if the external and local address is the same...

darcs-hash:20131211011207-c21fe-bce28094609c571ffacc3cc8183bcf5485914b05
added more checks and fixed small sync bug

Ignore-this: 97d3f0422ef83018d55546f655cffa50

darcs-hash:20131215051429-c21fe-99bace734f9eaaba9074a3cc586fee2aa58ddeed
Merge branch 'master' into moc_parse