Port 2049 is used by NFS, the Network File System, for sharing filesystems over the network.
A port is a transport layer number used together with an IP address and a protocol such as TCP or UDP to direct traffic to the correct service on a host.
A server process binds a socket to a port and listens, while a client typically chooses an ephemeral source port for outbound connections.
The combination of source and destination IP addresses, source and destination ports, and the transport protocol uniquely identifies a flow so the operating system can keep many conversations separate.
Firewalls, NAT, and scanners talk about ports because the destination port is the stable rendezvous point that exposes a service to the network.
An NFS server listens on 2049 so clients can mount exports and perform file operations remotely as if they were local.
A client connects, negotiates the NFS version and settings, and then performs reads, writes, and metadata operations as remote procedure calls over the session.
Depending on NFS version and environment, other RPC related services may be involved for discovery and locking, which can expand the set of required flows beyond a single port.
From a security view, NFS can expose large volumes of data if exports are too permissive, and historically some deployments relied on network trust more than strong authentication, so segmentation and least privilege exports matter.