Skip to content
Ameen Abozaid
Planned lessonJNR-048-L05

Ports and networking tools

  • Lesson 5 of 7
  • Junior
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

find which process listens on a port.

Planned topics

  • A port is a numbered door on a machine; one process can listen on a port at a time.
  • ss -tlnp lists listening TCP ports with the process (may need sudo).
  • lsof -i :8080 shows what uses port 8080.
  • curl -v localhost:8080/actuator/health tests an endpoint.
  • "Address already in use" means another process holds the port.
Draft outline details

Demonstration

bash
ss -tlnp | grep 8080
lsof -i :8080
curl -i localhost:8080/actuator/health

Check your understanding

What does "Address already in use" mean?

Show answer

Another process is already listening on that port.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.