RemoteAddress Property

log4net SDK Reference |

# UdpAppender.RemoteAddress Property

Gets or sets the IP address of the remote host or multicast group to which the underlying UdpClient should sent the logging event.

[Visual Basic]
Public Property RemoteAddress As IPAddress
[C#]
public System.Net.IPAddress RemoteAddress {get; set;}

#### Property Value

The IP address of the remote host or multicast group to which the logging event will be sent.

#### Remarks

Multicast addresses are identified by IP class D addresses (in the range 224.0.0.0 to 239.255.255.255). Multicast packets can pass across different networks through routers, so it is possible to use multicasts in an Internet scenario as long as your network provider supports multicasting.

Hosts that want to receive particular multicast messages must register their interest by joining the multicast group. Multicast messages are not sent to networks where no host has joined the multicast group. Class D IP addresses are used for multicast groups, to differentiate them from normal host addresses, allowing nodes to easily detect if a message is of interest.

Static multicast addresses that are needed globally are assigned by IANA. A few examples are listed in the table below:

IP Address | Description
--- | ---
224.0.0.1 | Sends a message to all system on the subnet.
224.0.0.2 | Sends a message to all routers on the subnet.
224.0.0.12 | The DHCP server answers messages on the IP address 224.0.0.12, but only on a subnet.

A complete list of actually reserved multicast addresses and their owners in the ranges defined by RFC 3171 can be found at the IANA web site.

The address range 239.0.0.0 to 239.255.255.255 is reserved for administrative scope-relative addresses. These addresses can be reused with other local groups. Routers are typically configured with filters to prevent multicast traffic in this range from flowing outside of the local network.

#### See Also

UdpAppender Class | log4net.Appender Namespace