The farthest country from any sea or ocean is Kyrgyzstan.
If you like the open seas, then the last place on earth you would like to visit would be Xinjiang, a province of China that used to be called Sinkiang.
One place in the desert region of northern Xinjiang is second farthest from the sea than any other point on earth, more than 1,500 miles!