36 references to IPEndPoint
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
658var endpoint = endpointConfiguration.ListenOptions.IPEndPoint!;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
AnyIPListenOptions.cs (5)
20Debug.Assert(IPEndPoint != null); 33context.Logger.LogTrace(ex, CoreStrings.FailedToBindToIPv6Any, IPEndPoint.Port); 37context.Logger.LogDebug(CoreStrings.FallbackToIPv4Any, IPEndPoint.Port, IPEndPoint.Port); 41EndPoint = new IPEndPoint(IPAddress.Any, IPEndPoint.Port);
ListenOptions.cs (1)
236var options = new ListenOptions(new IPEndPoint(address, IPEndPoint!.Port))
LocalhostListenOptions.cs (1)
26return $"{Scheme}://localhost:{IPEndPoint!.Port}";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
AddressBinderTests.cs (10)
59Assert.Equal(IPAddress.IPv6Any, listenOptions.IPEndPoint.Address); 60Assert.Equal(80, listenOptions.IPEndPoint.Port); 70Assert.Equal(IPAddress.Loopback, listenOptions.IPEndPoint.Address); 71Assert.Equal(80, listenOptions.IPEndPoint.Port); 82Assert.Equal(8080, listenOptions.IPEndPoint.Port); 150Assert.Equal(IPAddress.Parse(ip), listenOptions.IPEndPoint.Address); 151Assert.Equal(port, listenOptions.IPEndPoint.Port); 267if (endpoint.IPEndPoint.Address.Equals(IPAddress.IPv6Any)) 273if (endpoint.IPEndPoint.Address.Equals(IPAddress.Any)) 314Assert.Contains(endpoints, e => e.IPEndPoint.Port == 5000 && !e.IsTls);
Microsoft.AspNetCore.Server.Kestrel.Tests (14)
KestrelConfigurationLoaderTests.cs (14)
72Assert.Equal(5001, serverOptions.ConfigurationBackedListenOptions[0].IPEndPoint.Port); 90Assert.Equal(5001, serverOptions.CodeBackedListenOptions[0].IPEndPoint.Port); 108Assert.Equal(5001, serverOptions.CodeBackedListenOptions[0].IPEndPoint.Port); 114Assert.Equal(5001, serverOptions.CodeBackedListenOptions[0].IPEndPoint.Port); 144Assert.Equal(5002, serverOptions.ConfigurationBackedListenOptions[0].IPEndPoint.Port); 145Assert.Equal(5003, serverOptions.CodeBackedListenOptions[0].IPEndPoint.Port); 1477Assert.Equal(5000, serverOptions.ConfigurationBackedListenOptions[0].IPEndPoint.Port); 1478Assert.Equal(5001, serverOptions.ConfigurationBackedListenOptions[1].IPEndPoint.Port); 1490Assert.Equal(5001, endpointsToStop[0].IPEndPoint.Port); 1493Assert.Equal(5002, endpointsToStart[0].IPEndPoint.Port); 1494Assert.Equal(5003, endpointsToStart[1].IPEndPoint.Port); 1497Assert.Equal(5000, serverOptions.ConfigurationBackedListenOptions[0].IPEndPoint.Port); 1530Assert.Equal(5000, stopEndpoint.IPEndPoint.Port); 1533Assert.Equal(5000, startEndpoint.IPEndPoint.Port);
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
125public int Port => _listenOptions.IPEndPoint?.Port ?? 0; 143return new TestConnection(Port, _listenOptions.IPEndPoint.AddressFamily);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
125public int Port => _listenOptions.IPEndPoint?.Port ?? 0; 143return new TestConnection(Port, _listenOptions.IPEndPoint.AddressFamily);