The Lumia 640XL, and all Lumias with the exception of the 950 and 950XL, cannot connect to a Television through a wired port. You can, however, connect via a wireless MiraCast solution. If you're TV is MiraCast enabled, then you can connect that way. If not, you would need to purchase a MiraCast Dongle, which will plug into both the HDMI and USB ports on your television.