/// <summary>
/// Gets the name of the return address from the provided value.
/// If the target includes a machine name, uses the local machine name in the returned value
/// otherwise uses the local IP address in the returned value.
/// </summary>
/// <param name="value"></param>
/// <param name="target"></param>
/// <returns></returns>
public static string GetReturnAddress(string value, string target)
{
return(GetReturnAddress(Address.Parse(value), Address.Parse(target)));
}