CyberHunter
Local dataset, no network
// Network services

Port 7040: Quest application level network service discovery

Port 7040 is assigned by IANA to quest-disc (Quest application level network service discovery).

7040

How quest-disc works

Network services
client:7040quest-discresponse client:7040quest-discresponse

The client sends a request to port 7040 and the quest-disc service answers.

Transport
UDP
Exposure risk
not rated depends on the program listening
Encryption
Unknownnot stated by the registry
IANA status
Assigned1 registered service
Range
Registered (1024-49151)
01 Security

Is port 7040 dangerous?

We have no specific security note for port 7040. Its risk depends on the program actually listening on it. General advice for network services services:

  • Answer only the networks that need the service (no open resolvers, relays or reflectors).
  • UDP services can be abused for DDoS amplification: rate-limit or block them at the edge.
  • Disable legacy test services that have no use in production.
02 Registry

IANA registry entries for port 7040

ServicePortTransportDescriptionReferenceUpdated
quest-disc 7040 UDP Quest application level network service discovery - 2012-04-09
-7040-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 7040, and is it reachable?

Linux

sudo ss -ltnup 'sport = :7040'      # process listening on 7040
sudo lsof -nP -i :7040

macOS

sudo lsof -nP -i :7040

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 7040 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 7040
netstat -ano | findstr :7040

From another machine

nmap -p 7040 -sV <host>
sudo nmap -sU -p 7040 <host>
nc -zv <host> 7040

Block it in the firewall

sudo ufw deny 7040/udp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 7040" -Direction Inbound -LocalPort 7040 -Protocol UDP -Action Block  # Windows
04 FAQ
What is port 7040 used for?

Port 7040 is assigned by IANA to quest-disc (Quest application level network service discovery).

Is port 7040 TCP or UDP?

Port 7040 is registered for UDP.

Is it safe to open port 7040?

It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Answer only the networks that need the service (no open resolvers, relays or reflectors).

How do I check if port 7040 is open?

On Linux run "ss -ltnup 'sport = :7040'", on macOS "lsof -nP -i :7040", and on Windows "netstat -ano | findstr :7040" to see the local process. From another machine, "nmap -p 7040 <host>" shows whether it is reachable.

05 Related

Latest vulnerability news

All news