{% extends "portregistry/base.html" %} {% load pr_format %} {% block title %}{{ sock|endpoint }}{% endblock %} {% block heading %}{{ sock|endpoint }} {% if sock.active %}{{ sock.state }}{% else %}no longer observed{% endif %}{% endblock %} {% block content %}
{% if label %}{{ label }}{% endif %} {% if ignored %}{{ ignored }}{% endif %} {% if sock.active %} Register as service {% if not ignored %}
{% csrf_token %}
{% endif %} {% endif %} Timeline {% if sock.active and sock.process and sock.process.identity_complete %}{% if control.enabled %}Stop owning process…{% else %}How to stop this{% endif %}{% endif %}

Endpoint

Protocol
{{ sock.protocol|upper }}{% if sock.protocol == "udp" %} (bound socket; UDP has no LISTEN state){% endif %}
Address
{{ sock.address }} ({{ sock.family }})
Port
{{ sock.port }}
First seen
{{ sock.first_seen|ago }}
Last seen
{{ sock.last_seen|ago }}{% if sock.last_scan_id %} (scan #{{ sock.last_scan_id }}){% endif %}
{% if sock.ended_at %}
Closed
{{ sock.ended_at|ago }}
{% endif %}

Owning process

{% if sock.process %} {% with p=sock.process %}
Name
{{ p.name|default:"?" }}
PID
{{ p.pid }}
Started
{{ p.started_at|ago }}
User
{{ p.username|default:"—" }}
Project
{% if p.project_name %}{{ p.project_name }} {{ p.project_root }}{% else %}—{% endif %}
Executable
{{ p.exe|default:"—" }}
Command line
{{ p.cmdline|cmdline|default:"—" }}
Identity
{{ p.identity_key }}{% if not p.identity_complete %} incomplete{% endif %}
{% if p.metadata_errors %}
Restricted metadata: {{ p.metadata_errors|pretty_json }}. PortRegistry never elevates privileges automatically.
{% endif %} {% endwith %} {% elif sock.pid %}

PID {{ sock.pid }} was reported by the OS but its metadata could not be read (the process may have exited during the scan).

{% else %}

The OS did not report an owning PID (often requires elevated privileges).

{% endif %}

Registry

{% for r in covering %}

Covered by reservation #{{ r.pk }} {{ r|endpoint }}{% if r.service %} for {{ r.service.name }}{% endif %}

{% empty %}

No reservation covers this endpoint.

Reserve {{ sock.protocol|upper }} {{ sock.port }} {% endfor %} {% for m in docker %}

Published by Docker container {{ m.container.name }} ({{ m.container.image_ref }}) → {{ m.container_port }}/{{ m.protocol }}. Container port mappings are reported by Docker; the host socket owner may be a proxy process.

{% endfor %} {% if siblings %}

Other endpoints on port {{ sock.port }}

{% endif %}

Conflicts

{% for conflict in conflicts %} {% include "portregistry/partials/conflict_card.html" with conflict=conflict %} {% empty %}

None.

{% endfor %}

History

{% endblock %}