I have what might be a really stupid question.

Is it possible (and if it is then how) to send serial data from one wifi module to an other when they are both connected to the same wifi router?

I would like to remove some cables in a rs-485 network and replace then with uart wifi solution. I just dont know where to start.... well I have a wifi router :-) and the modules and lots of PICs and programmers . Does anyone know?