If your router is wireless, all you need is a Wireless NIC (Network Interface Card), for your desktop. You can install it either into the PCI slot or use a USB port. After the drivers are installed, and you connect to your router, by default the TCP/IP settings are set to dynamic so they should pull an IP from the router and DNS servers as well.