Skip to content
AdminKit

Is UDP port 1900 (SSDP/UPnP) answering from the internet?

AdminKit's short answer: if UDP port 1900 on your public IP answers an SSDP search, your router or a device behind it is announcing itself to the internet and can be used to reflect and amplify DDoS traffic at others. AdminKit's port check skips UDP 1900, so this guide shows a safe manual test and the fix.

By AdminKit team, Netbase JSC · Updated

Key takeaways

  • UDP 1900 is the SSDP port, the discovery half of UPnP. It is meant for the local network only.
  • SSDP does not check whether a search came from the local network. A router or device that answers on its WAN side replies to anyone on the internet.
  • Because UDP source addresses can be forged, an exposed SSDP responder can be used to reflect and amplify denial-of-service traffic at a third party.
  • AdminKit’s port check does not test UDP 1900. Test it by hand from outside, then turn UPnP off on the router or stop the service from listening on the WAN.

What is listening on UDP port 1900?

SSDP, the Simple Service Discovery Protocol, is how UPnP devices find each other. The Open Connectivity Foundation, which now publishes the UPnP specifications, defines it in the UPnP Device Architecture 2.0. Devices send announcements to the multicast address 239.255.255.250 on port 1900, and control points such as phones, media players and PCs send M-SEARCH requests to the same address to look for devices. The IANA registry lists ssdp on port 1900.

Two details in the specification matter for exposure. First, a control point may also send a search directly to one device’s address, and “All devices shall listen to incoming unicast search messages on port 1900” and respond when the search matches. Second, the specification asks devices to keep multicast messages local by giving each packet a time-to-live that “should default to 2”. That limit applies to multicast; a unicast search arriving from the internet is not covered by it.

On a typical home or small-office network, these devices listen on 1900:

DeviceWhy it runs SSDPExposure risk if it answers from the WAN side
Router with UPnP enabledAnnounces itself as an Internet Gateway Device so apps can request port forwardsThe most common WAN-side responder; reveals its UPnP stack and a description URL
Smart TVs and media playersCast and media-sharing discoveryOnly reachable from outside through a forward or public address
Media servers and NAS boxesDLNA and UPnP media sharingSame; often also run a web interface
Printers and camerasDiscovery by apps and operating systemsSame; announce model and firmware details

The SSDP and UPnP glossary entries define both terms in a paragraph each. For what these protocols leak on the local network itself, see mDNS, SSDP and UPnP: how LAN discovery leaks device info. This page covers the other side: what happens when port 1900 answers from the internet.

Why does SSDP answer strangers on the internet?

Because nothing in the protocol asks where a search came from. Cloudflare’s 2017 write-up on an SSDP reflection attack over 100 Gbps shows a unicast M-SEARCH sent to a device on a home network, then the same search sent to a misconfigured router on the public internet, which answered with its UPnP details. Their conclusion: “the SSDP protocol does not check whether the querying party is in the same network as the device. It will happily respond to an M-SEARCH delivered over the public Internet.”

The fault is usually in the router, not the protocol. A router’s UPnP service is supposed to listen only on its LAN interface. The authors of MiniUPnP, a UPnP gateway implementation used in many routers, say on the MiniUPnP project page that a common problem is leaving SSDP or the HTTP/SOAP control ports open to the internet, when “they should be only reachable from the LAN”, and that several vulnerabilities have been found in MiniUPnPd over time, so it is important to update to the latest version. The OpenWrt documentation for its UPnP package carries a similar caution: mixing up WAN and LAN interfaces may introduce security risks.

How does an exposed port 1900 amplify DDoS attacks?

SSDP runs over UDP, which has no handshake. A sender can put any address in the source field of a request, and the reply goes to that address. An attacker who can forge source addresses sends small M-SEARCH requests to many exposed SSDP responders, using the victim’s address as the source. Every responder sends its replies to the victim, which then receives far more traffic than the attacker sent. This is reflection plus amplification, the same pattern seen with open Memcached on port 11211 and NTP on port 123.

The amplification comes from the search type. A search for ssdp:all asks a device to list every device and service it has, and each one is a separate reply. Cloudflare’s 2017 measurements of the reflectors used in the attack they analysed found:

What they measured (Cloudflare, June 2017)Result
Replies to a single ssdp:all search, one router tested by hand8 response packets
Average reply size across the reflectors that still answered321 bytes, against a 110-byte request
Packet amplification with ssdp:allAbout 7x
Bandwidth amplification with ssdp:allAbout 20x

These figures describe the devices in that one study, not every router, but they show why a device that answers on 1900 is useful to an attacker. The responders in that attack were spread across large residential networks, and many of their SERVER headers named consumer router UPnP stacks. The attack does not harm the responder much; the cost lands on the victim and on the networks carrying the traffic. Spoofing itself is something network operators can stop at the edge, described in our glossary entry on BCP 38 source address validation.

Who is looking for open SSDP?

Security organisations scan for it and notify network owners. The Shadowserver Foundation publishes an Open SSDP Report that “identifies hosts that have the Simple Service Discovery Protocol (SSDP) running and accessible on the Internet”, rated HIGH severity by default, because these services “have the potential to be used in amplification attacks”. Network owners can subscribe to these free reports for their own address space. If your ISP has told you that your connection runs an open SSDP service, a scan like this one is a likely source, and the fix below is what they are asking for.

Attackers scan for the same thing, which is why a device that answers on 1900 does not need to be famous or important to be used.

How do you read AdminKit’s port check for UDP 1900?

AdminKit’s open ports check tests the public IP you are browsing from, using TCP connections to nine ports: 23, 554, 1883, 8883, 502, 7547, 80, 443 and 8080. It lists BACnet/IP (47808) and CoAP (5683) as UDP ports it does not scan. UDP 1900 is not tested and is not on that list. Confirm the public address you are testing first with what is my IP.

What the result showsWhat it tells you about SSDP
“0/9 TCP port(s) open” with an OK statusNothing about UDP 1900. Test it separately
80, 443 or 8080 openYour router’s web admin page may be reachable from the WAN. Close it, and test 1900 too; both point to a router exposing LAN services outside
7547 (TR-069) openYour ISP may manage the router remotely. Ask them, and test 1900 too

How do you test UDP 1900 from outside, safely?

Test from a machine outside your network, such as a laptop on a mobile hotspot, and send one search to your own public address only. Shadowserver’s report page gives a manual method: watch traffic with tcpdump in one window and send a single M-SEARCH from a second window. The same single search, written as a short Python script (a documentation address is shown):

python3 - <<'PY'
import socket
target = "203.0.113.40"   # your own public IP
msg = (b"M-SEARCH * HTTP/1.1\r\n"
       b"HOST: 239.255.255.250:1900\r\n"
       b'MAN: "ssdp:discover"\r\n'
       b"MX: 1\r\n"
       b"ST: upnp:rootdevice\r\n\r\n")
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.settimeout(5)
s.sendto(msg, (target, 1900))
print(s.recvfrom(4096)[0].decode(errors="replace"))
PY

It searches for upnp:rootdevice, which asks for one reply per root device rather than everything. A reply starting with HTTP/1.1 200 OK and carrying SERVER and LOCATION headers means SSDP answers from the internet. A timeout means nothing answered on that path, which for UDP can mean closed or filtered. If you use Nmap, the upnp-info script runs a similar query and prints the server string and description URL:

sudo nmap -sU -p 1900 --script=upnp-info 203.0.113.40

Send one search, not a stream of them. The point is to see whether anything answers, not to measure how much.

How do you stop port 1900 answering from the WAN?

  1. Turn UPnP off on the router unless something specific needs it. The OpenWrt UPnP documentation explains that UPnP lets a program make the router open ports “without any intervention from the user, without making any check”, and recommends setting up port forwarding manually whenever possible and leaving UPnP disabled.
  2. Find the setting. On NETGEAR routers the NETGEAR knowledge base places it under ADVANCED > Advanced Setup > UPnP, with a “Turn UPnP On” check box that is selected by default. It also warns that a worm or malware can use UPnP to compromise the security of your LAN. Other brands put it under NAT, Advanced or Network settings.
  3. Update the router firmware. If UPnP must stay on, a current firmware is the most likely way to get an SSDP service that listens only on the LAN.
  4. Check for forwards to devices behind the router. A port forward for UDP 1900 to a TV or media server exposes that device’s SSDP instead. Remove it.
  5. Block inbound UDP 1900 on the WAN if your router lets you add firewall rules, as a backstop.
  6. Re-run the outside test. A timeout is the result you want. Keep the date and result with your network notes.

Turning UPnP off also stops devices inside the network from opening ports on the router by themselves, which is the bigger risk covered in the LAN discovery guide. Machine and device protocols that were built for a trusted network share this pattern; the machine protocols cluster collects the related checks and guides.

Which networks may you test?

Every check this page links to is for assets you own or are explicitly authorized to test. Never scan, probe, or attempt to connect to a network or device you don’t control. AdminKit’s active checks only ever run against the IP making the request or an asset you’ve verified ownership of. See our Disclaimer and Acceptable Use Policy for the full terms.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

What is UDP port 1900 used for?

It is the SSDP port. SSDP is the discovery part of UPnP: devices announce themselves to the multicast address 239.255.255.250 on port 1900, and control points send M-SEARCH requests there to find them. The UPnP Device Architecture also requires devices to answer unicast searches sent directly to port 1900.

Why is an SSDP reply from the WAN side a problem?

SSDP is UDP, so the source address of a request can be forged. An attacker sends small searches with a victim's address as the source, and every exposed device sends its larger replies to the victim. Cloudflare's 2017 measurements of real SSDP reflectors found about 7 times as many packets and about 20 times as many bytes coming back as were sent.

Does AdminKit's port check test port 1900?

No. The port check makes TCP connections to a fixed list of nine ports on the public IP you connect from, and lists only BACnet/IP (47808) and CoAP (5683) as UDP ports it does not scan. UDP 1900 is not tested at all, so test it manually from outside your network against your own address.

Is disabling UPnP the same as closing port 1900?

Usually it fixes both problems on a home or office router, because the router's UPnP service is what answers SSDP. Confirm with an outside test afterwards. If something still answers, look for a device behind the router that has a port forward or a public address of its own.

Will turning off UPnP break my games or apps?

It can affect apps that need inbound connections, such as some game consoles and peer-to-peer software. The OpenWrt and Netgear documentation both recommend setting up port forwarding manually instead, so add a single forward for the device that needs it rather than turning UPnP back on.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.