in reply to Can a socket listen for multiple hosts?

You might want to look into POE, maybe something like POE::Component::Client::TCP and POE::Component::Server::TCP.
  • Comment on Re: Can a socket listen for multiple hosts?