Can unity do socket communication?

title

Yes, with the pro version.

Or with the free desktop/webplayer version.

then, how do socket communication? simple example?

Mostly just .Net stuff - so google is your friend.