Chosen Solution

Hi so I spilled water on my laptop and now the HDMI port is not working , the device is working fine and the speakers,but only the HDMI port is not working. Can I replace it or is it soldered to the motherboard ?

You can try replacing the I/O Board, it’s the small board that has the SD, USB and HDMI ports on it. Follow this tutorial: MacBook Pro 15" Retina Display Mid 2012 I/O Board Replacement