TCP/IP connection to software

Hi guys,

I need to send data from the arduino via ethernet to a software (using XML).

So far, I manage to point the webbrowser at arduino, meaning that the arduino acts as webserver. However, I need the arduino to open the TCP/IP connection to the software to send (arduino) data that way.

Can anyone help me with coding examples? Thanks and cheers!