It is not wrong to engage in a conversation with a stranger over the internet while you are attached. But something's wrong when you become emotionally obsessed with the internet because of said conversation.
Something's wrong when you secretly wish you were able to meet the said stranger in person. For a certain 'something' to grow between the two of you. So what? Everyone needs a little excitement once in a while.
Everything goes wrong when you start to fantasize.