# Utils.ToGatewayUri(IPEndPoint)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.utils/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.utils/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Utils/Utils.cs#L152)

```csharp
public static Uri ToGatewayUri(this IPEndPoint ep)
```

Represent an IP end point in the gateway URI format..

### Parameters

- `ep` (`IPEndPoint`): The input IP end point
