CyberHunter
// Web

Port 3702: Web Service Discovery

Port 3702 is assigned by IANA to ws-discovery (Web Service Discovery).

3702

How ws-discovery works

Web
browser:3702ws-discovery browser:3702ws-discovery

A browser sends an HTTP request to port 3702 and the ws-discovery server sends the page back.

Transport
TCP · 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)
Category
Web
01 Security

Is port 3702 dangerous?

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

  • Serve it over HTTPS only and check the HTTP security headers.
  • Keep admin consoles and development servers off the Internet.
  • Patch the application server and remove default credentials and sample apps.
02 Registry

IANA registry entries for port 3702

ServicePortTransportDescriptionReferenceUpdated
ws-discovery 3702 TCP, UDP Web Service Discovery - 2003-02

// source: IANA service name and port number registry

03 Check it

Which program uses port 3702, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :3702

Windows (PowerShell)

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

From another machine

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

Block it in the firewall

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

Port 3702 is assigned by IANA to ws-discovery (Web Service Discovery).

Is port 3702 TCP or UDP?

Port 3702 is registered for TCP and UDP.

Is it safe to open port 3702?

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. Serve it over HTTPS only and check the HTTP security headers.

How do I check if port 3702 is open?

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

05 Related