CyberHunter
// Databases & caches

Port 6640: Open vSwitch Database protocol

Port 6640 is assigned by IANA to ovsdb (Open vSwitch Database protocol).

6640

How ovsdb works

Databases & caches
app:6640ovsdb app:6640ovsdb

The application sends a SQL query to the ovsdb server on port 6640, which returns rows from its tables.

Transport
TCP
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 6640 dangerous?

We have no specific security note for port 6640. Its risk depends on the program actually listening on it. General advice for databases & caches services:

  • Bind the service to localhost or a private network, never to a public address.
  • Enable authentication, use per-application accounts and require TLS.
  • Watch for exposed Docker ports: publish them on 127.0.0.1 only.
02 Registry

IANA registry entries for port 6640

ServicePortTransportDescriptionReferenceUpdated
ovsdb 6640 TCP Open vSwitch Database protocol RFC 7047 2013-07-31
-6640-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 6640, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :6640

Windows (PowerShell)

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

From another machine

nmap -p 6640 -sV <host>
nc -zv <host> 6640

Block it in the firewall

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

Port 6640 is assigned by IANA to ovsdb (Open vSwitch Database protocol).

Is port 6640 TCP or UDP?

Port 6640 is registered for TCP.

Is it safe to open port 6640?

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. Bind the service to localhost or a private network, never to a public address.

How do I check if port 6640 is open?

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

05 Related