I'm trying to prove this well-known result by using net. The proof is surprisingly simple. Could you have a check on my attempt?
Let $X$ be a metric space, $\tau$ the induced topology on $X$, and $A \subseteq X$ be compact (in the subspace topology $\tau_A$). Then $A$ is closed and bounded.
Lemma: Let $a\in A$ and $(x_d)_{d \in D}$ be a net in $A$. Then $x_d \to a$ in $\tau$ if and only if $x_d \to a$ in $\tau_A$. [A proof is provided here]
My attempt:
Let $a\in X$ and$(x_d)_{d\in D}$ be a net $A$ such that $x_d \to a$ in $\tau$. By this characterization of closed set, it suffices to prove $a\in A$. Because $A$ is compact, there exist $a' \in A$ and a subnet $(x_{\varphi(s)})_{s\in S}$ of $(x_d)_{d\in D}$ such that $x_{\varphi(s)} \to a'$ in $\tau_A$. By our lemma, $x_{\varphi(s)} \to a'$ in $\tau$. Any convergent subnet of $(x_d)_{d\in D}$ converges to $a$. In particular, $x_{\varphi(s)} \to a$ in $\tau$. Because $(X, \tau)$ is Hausdorff, $a=a'$ and thus $a\in A$. Hence $A$ is closed.
Let $A_x := \mathbb B_A(x, 1) := \{y \in A \mid d(y, x) < 1\}$. Then $A_x \in \tau_A$, i.e., $A_x$ is open in $A$ for all $x\in A$. Then $(A_x)_{x\in A}$ is an open cover of $A$. Then there is a finite subset $I \subseteq A$ such that $(A_x)_{x\in I}$ covers $A$. Pick $x_o \in I$ and Let $d := \max \{d(x, x_0) \mid x\in I\}\}$. Then $d(x_0, y) \le d(x_0, x) + d(y, x)$ where $y \in A_x$ for some $x\in I$. It follows that $d(x_0, y) \le d+1$ for all $y\in A$.