Fix port for Namecoin example
Better parse IPs passed as strings
Update state for already-connected sockets