If you are trying to connect the TV ethernet connection to your router you can't use HDMI to do that,.
If you had a blueray player that was connected to the router then the HDMI cable from that to the TV might also give you an ethernet connection to the router for the TV.
Use Wifi is you can't run an CAT cable to the router.