225 references to IPEndPoint
ClientSample (2)
dotnet-svcutil-lib (2)
http2cat (1)
HttpsPolicySample (2)
IIS.Common.TestLib (1)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IISExpress.FunctionalTests (3)
InMemory.FunctionalTests (32)
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateFactoryTests.cs (2)
333new object[] { (Action<HttpContext, IPEndPoint[]>)Store, new[] { "127.0.0.1:80" },new[] { new IPEndPoint(IPAddress.Loopback, 80) } },
384new object[] { (Action<HttpContext, IPEndPoint>)Store, "127.0.0.1:80", new IPEndPoint(IPAddress.Loopback, 80) },
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.HttpOverrides.Tests (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (29)
KestrelServerTests.cs (25)
107serverOptions.Listen(new IPEndPoint(IPAddress.Loopback, 0));
342serverOptions.Listen(new IPEndPoint(IPAddress.Loopback, 0));
358var endpoint = new IPEndPoint(IPAddress.Loopback, 0);
379serverOptions.Listen(new IPEndPoint(IPAddress.Loopback, 0), c =>
399var endpoint = new IPEndPoint(IPAddress.Loopback, 0);
543new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
600new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
660new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
722new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
826mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once);
827mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once);
828mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5002), It.IsAny<CancellationToken>()), Times.Never);
829mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5003), It.IsAny<CancellationToken>()), Times.Never);
847mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once);
848mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once);
849mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5002), It.IsAny<CancellationToken>()), Times.Once);
850mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5003), It.IsAny<CancellationToken>()), Times.Once);
876mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once);
877mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once);
878mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5002), It.IsAny<CancellationToken>()), Times.Once);
879mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5003), It.IsAny<CancellationToken>()), Times.Exactly(2));
964mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5000), It.IsAny<CancellationToken>()), Times.Once);
965mockTransportFactory.Verify(f => f.BindAsync(new IPEndPoint(IPAddress.IPv6Any, 5001), It.IsAny<CancellationToken>()), Times.Once);
1000resolvedEndPoint = new IPEndPoint(new IPAddress(ipEndPoint.Address.GetAddressBytes()), port);
1052resolvedEndPoint = new IPEndPoint(new IPAddress(ipEndPoint.Address.GetAddressBytes()), port);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.Testing (2)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
Microsoft.Extensions.ServiceDiscovery (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
Microsoft.Extensions.ServiceDiscovery.Tests (11)
ServiceEndpointResolverTests.cs (9)
91collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.1"), 8080)));
96collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.2"), 8888)));
130Assert.Equal(new IPEndPoint(IPAddress.Parse("127.1.1.1"), 8080), endpoints[0]);
131Assert.Equal(new IPEndPoint(IPAddress.Parse("127.1.1.2"), 8888), endpoints[1]);
143collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.1"), 8080)));
148collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.2"), 8888)));
179collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.1"), 8080)));
184collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.2"), 8888)));
231collection.Endpoints.Add(ServiceEndpoint.Create(new IPEndPoint(IPAddress.Parse("127.1.1.1"), 8080)));
Microsoft.Gen.Logging.Generated.Tests (2)
Sockets.BindTests (39)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (32)
344=> RunTestWithStaticPort(port => RegisterIPEndPoint_Success(new IPEndPoint(address, port), testUrl, port));
540socket.Bind(new IPEndPoint(IPAddress.Loopback, 0));
575socket.Bind(new IPEndPoint(IPAddress.IPv6Loopback, 0));
613options.Listen(new IPEndPoint(IPAddress.Loopback, 0), listenOptions =>
658options.Listen(new IPEndPoint(IPAddress.Loopback, 0), listenOptions =>
700options.Listen(new IPEndPoint(IPAddress.Loopback, 0), listenOptions =>
943socket.Bind(new IPEndPoint(IPAddress.IPv6Any, 0));
952socket.Bind(new IPEndPoint(address, port));
1022.Where(ip => CanBindAndConnectToEndpoint(new IPEndPoint(ip, 0)));
1047dataset.Add(new IPEndPoint(IPAddress.Loopback, 0), "http://127.0.0.1");
1048dataset.Add(new IPEndPoint(IPAddress.Loopback, 0), "https://127.0.0.1");
1051dataset.Add(new IPEndPoint(IPAddress.IPv6Loopback, 0), "http://[::1]");
1052dataset.Add(new IPEndPoint(IPAddress.IPv6Loopback, 0), "https://[::1]");
1055dataset.Add(new IPEndPoint(IPAddress.Any, 0), "http://127.0.0.1");
1056dataset.Add(new IPEndPoint(IPAddress.Any, 0), "https://127.0.0.1");
1059dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "http://127.0.0.1");
1060dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "http://[::1]");
1061dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "https://127.0.0.1");
1062dataset.Add(new IPEndPoint(IPAddress.IPv6Any, 0), "https://[::1]");
1067.Where(ip => CanBindAndConnectToEndpoint(new IPEndPoint(ip, 0)));
1071dataset.Add(new IPEndPoint(ip, 0), $"http://{ip}");
1072dataset.Add(new IPEndPoint(ip, 0), $"https://{ip}");
1078.Where(ip => CanBindAndConnectToEndpoint(new IPEndPoint(ip, 0)));
1082dataset.Add(new IPEndPoint(ip, 0), $"http://[{ip}]");
1102{ new IPEndPoint(IPAddress.Loopback, 443), "https://127.0.0.1" },
1103{ new IPEndPoint(IPAddress.IPv6Loopback, 443), "https://[::1]" },
1104{ new IPEndPoint(IPAddress.Any, 443), "https://127.0.0.1" },
1105{ new IPEndPoint(IPAddress.IPv6Any, 443), "https://[::1]" }
1126.Where(ip => CanBindAndConnectToEndpoint(new IPEndPoint(ip, 0)));
1162.Where(ip => CanBindAndConnectToEndpoint(new IPEndPoint(ip, 0)));
1202socket.Bind(new IPEndPoint(IPAddress.Loopback, 0));
1252socket.Bind(new IPEndPoint(address, port));
Sockets.FunctionalTests (19)
System.Net.HttpListener (1)
System.Net.NetworkInformation (2)
System.Net.Ping (2)
System.Net.Primitives (3)
System.Net.Quic (2)
System.Net.Requests (4)
System.Net.Sockets (29)