225 references to IPEndPoint
ClientSample (2)
Tcp\TcpHubConnectionBuilderExtensions.cs (2)
28endPoint = new IPEndPoint(IPAddress.Loopback, uri.Port); 32endPoint = new IPEndPoint(IPAddress.Parse(uri.Host), uri.Port);
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
928socket.Connect(new IPEndPoint(address, port)); 945await socket.ConnectAsync(new IPEndPoint(address, port));
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
HttpsPolicySample (2)
Startup.cs (2)
52options.Listen(new IPEndPoint(IPAddress.Loopback, 5001), listenOptions => 56options.Listen(new IPEndPoint(IPAddress.Loopback, 5000), listenOptions =>
IIS.Common.TestLib (1)
TestConnections.cs (1)
249socket.Connect(new IPEndPoint(address, port));
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
165socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1454socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1454socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1454socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
165socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1454socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
InMemory.FunctionalTests (32)
ConnectionLimitTests.cs (1)
237var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
ConnectionMiddlewareTests.cs (8)
39var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 135var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 158var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 184var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 211var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 243var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 271var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 302var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
HttpProtocolSelectionTests.cs (2)
62var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 81var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
KestrelMetricsTests.cs (5)
46var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 109var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 323var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 441var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 493var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
ResponseDrainingTests.cs (2)
17new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)), 18new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)).UsePassThrough()
ResponseTests.cs (8)
4377options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 4410options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 4447options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 4478new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) { Protocols = HttpProtocols.Http1 })) 4505options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 4509options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 1)) 4545options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) 4696options => options.CodeBackedListenOptions.Add(new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))),
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
50listener.Bind(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
69socket.Connect(new IPEndPoint(address, port));
TestTransport\InMemoryTransportConnection.cs (2)
29LocalEndPoint = new IPEndPoint(IPAddress.Loopback, 0); 30RemoteEndPoint = new IPEndPoint(IPAddress.Loopback, 0);
TestTransport\TestServer.cs (2)
44: this(app, context, new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))) 57var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
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) },
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
140new object[] { "IPEndPoint[]", new[] { "127.0.0.1:80" },new[] { new IPEndPoint(IPAddress.Loopback, 80) } },
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (1)
51new object[] { "IPEndPoint", "127.0.0.1:80", new IPEndPoint(IPAddress.Loopback, 80) },
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
212RemoteIpAndPort = connection.RemoteIpAddress != null ? new IPEndPoint(connection.RemoteIpAddress, connection.RemotePort) : null, 310requestHeaders[_options.OriginalForHeaderName] = new IPEndPoint(connection.RemoteIpAddress, connection.RemotePort).ToString();
Microsoft.AspNetCore.HttpOverrides.Tests (1)
ForwardedHeadersMiddlewareTest.cs (1)
182Assert.Equal(new IPEndPoint(IPAddress.Parse(originalIp), 99).ToString(),
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
66var endpoint = new IPEndPoint(ip, address.Port);
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Common\TestPortHelper.cs (2)
26socket.Bind(new IPEndPoint(IPAddress.Loopback, 0)); 44socket.Bind(new IPEndPoint(IPAddress.Loopback, port));
Deployers\NginxDeployer.cs (1)
46_portSelector.Bind(new IPEndPoint(IPAddress.Loopback, 0));
Microsoft.AspNetCore.Server.Kestrel.Core (7)
AnyIPListenOptions.cs (2)
14: base(new IPEndPoint(IPAddress.IPv6Any, port)) 41EndPoint = new IPEndPoint(IPAddress.Any, IPEndPoint.Port);
Internal\AddressBinder.cs (1)
82endpoint = new IPEndPoint(ip, address.Port);
KestrelConfigurationLoader.cs (1)
103return Endpoint(new IPEndPoint(address, port), configure);
KestrelServerOptions.cs (1)
485Listen(new IPEndPoint(address, port), configure);
ListenOptions.cs (1)
236var options = new ListenOptions(new IPEndPoint(address, IPEndPoint!.Port))
LocalhostListenOptions.cs (1)
13: base(new IPEndPoint(IPAddress.Loopback, port))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (29)
KestrelServerOptionsTests.cs (1)
38options.Listen(new IPEndPoint(IPAddress.Loopback, 5000), opt =>
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);
ListenOptionsTests.cs (1)
18var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
50listener.Bind(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
69socket.Connect(new IPEndPoint(address, port));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (3)
QuicConnectionListenerTests.cs (1)
288var endpoint = new IPEndPoint(IPAddress.Loopback, 0);
QuicTestHelpers.cs (2)
59var endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), port); 73var endpoint = new IPEndPoint(IPAddress.Loopback, port);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionFactoryTests.cs (1)
53var ex = await Assert.ThrowsAsync<NotSupportedException>(async () => await factory.ConnectAsync(new IPEndPoint(IPAddress.Loopback, 0)));
Microsoft.AspNetCore.Testing (2)
ServiceFakesWebHostExtensions.cs (2)
36.UseKestrel(options => options.Listen(new IPEndPoint(IPAddress.Loopback, 0))); 53options.Listen(new IPEndPoint(IPAddress.Loopback, 0), listenOptions =>
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
TcpEndpointProbesServiceTests.cs (1)
103tcpClient.Connect(new IPEndPoint(IPAddress.Loopback, port));
Microsoft.Extensions.ServiceDiscovery (2)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
209endPoint = new IPEndPoint(ip, port);
PassThrough\PassThroughServiceEndpointProviderFactory.cs (1)
53endPoint = new IPEndPoint(ip, port);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
DnsSrvServiceEndpointResolverTests.cs (4)
120Assert.Equal(new IPEndPoint(IPAddress.Parse("10.10.10.10"), 8888), eps[0].EndPoint); 121Assert.Equal(new IPEndPoint(IPAddress.IPv6Loopback, 9999), eps[1].EndPoint); 212Assert.Equal(new IPEndPoint(IPAddress.Parse("10.10.10.10"), 8888), eps[0].EndPoint); 213Assert.Equal(new IPEndPoint(IPAddress.IPv6Loopback, 9999), eps[1].EndPoint);
Microsoft.Extensions.ServiceDiscovery.Tests (11)
ConfigurationServiceEndpointResolverTests.cs (2)
371Assert.Equal(new IPEndPoint(IPAddress.Loopback, 3333), initialResult.EndpointSource.Endpoints[1].EndPoint); 418Assert.Equal(new IPEndPoint(IPAddress.Loopback, 3333), initialResult.EndpointSource.Endpoints[1].EndPoint);
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)
LogPropertiesTests.cs (2)
97P7 = new IPEndPoint(IPAddress.Parse("192.168.10.1"), 42), 98P8 = new IPEndPoint(IPAddress.Parse("192.168.10.1"), 42),
Sockets.BindTests (39)
SocketTransportOptionsTests.cs (3)
86yield return new object[] { new IPEndPoint(IPAddress.Loopback, 0) }; 88yield return new object[] { new IPEndPoint(IPAddress.IPv6Loopback, 0) }; 107fileHandleSocket.Bind(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
69socket.Connect(new IPEndPoint(address, port));
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6SupportedConditionAttribute.cs (1)
26socket.Bind(new IPEndPoint(IPAddress.IPv6Loopback, 0));
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
42: this(app, context, new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))) 54var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
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)
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
69socket.Connect(new IPEndPoint(address, port));
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6SupportedConditionAttribute.cs (1)
26socket.Bind(new IPEndPoint(IPAddress.IPv6Loopback, 0));
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
42: this(app, context, new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))) 54var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0))
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (2)
21var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 51var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
34_canListenToOpenTcpSocketHandleSocket.Bind(new IPEndPoint(IPAddress.Loopback, 0));
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
317options.Listen(new IPEndPoint(IPAddress.Loopback, 0), listenOptions =>
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (6)
51{ "Loopback", () => new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) }, 52{ "PassThrough", () => new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)).UsePassThrough() } 118socket.Connect(new IPEndPoint(IPAddress.Loopback, host.GetPort())); 570socket.Connect(new IPEndPoint(IPAddress.Loopback, host.GetPort())); 617socket.Connect(new IPEndPoint(IPAddress.Loopback, host.GetPort())); 711socket.Connect(new IPEndPoint(IPAddress.Loopback, host.GetPort()));
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (5)
38new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)), 39new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)).UsePassThrough() 877var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 954var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)); 1041var listenOptions = new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0));
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
62_endpoint = new IPEndPoint(addr, port);
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (2)
290return new IPEndPoint(localIPAddress, localPort); 310return new IPEndPoint(ipAddress, port);
System.Net.Ping (2)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
53return new IPEndPoint(GetIPAddress(socketAddressBuffer), SocketAddressPal.GetPort(socketAddressBuffer));
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
52new IPEndPoint(address, 0), timeout, options,
System.Net.Primitives (3)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
53return new IPEndPoint(GetIPAddress(socketAddressBuffer), SocketAddressPal.GetPort(socketAddressBuffer));
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (1)
20return new IPEndPoint(socketAddress.GetIPAddress(), socketAddress.GetPort());
System\Net\IPEndPoint.cs (1)
121result = new IPEndPoint(address, (int)port);
System.Net.Quic (2)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
53return new IPEndPoint(GetIPAddress(socketAddressBuffer), SocketAddressPal.GetPort(socketAddressBuffer));
System\Net\Quic\QuicConnection.cs (1)
405QuicAddr remoteQuicAddress = new IPEndPoint(address, port).ToQuicAddr();
System.Net.Requests (4)
System\Net\FtpControlStream.cs (3)
706IPEndPoint localEndPoint = new IPEndPoint(((IPEndPoint)Socket.LocalEndPoint!).Address, 0); 709_passiveEndPoint = new IPEndPoint(ServerAddress, port); 1102IPEndPoint epListener = new IPEndPoint(((IPEndPoint)Socket.LocalEndPoint!).Address, 0);
System\Net\HttpWebRequest.cs (1)
1796IPEndPoint? endPoint = servicePoint.BindIPEndPointDelegate(servicePoint, new IPEndPoint(address, port), retryCount);
System.Net.Sockets (29)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (1)
53return new IPEndPoint(GetIPAddress(socketAddressBuffer), SocketAddressPal.GetPort(socketAddressBuffer));
src\libraries\Common\src\System\Net\IPEndPointStatics.cs (2)
9internal static readonly IPEndPoint Any = new IPEndPoint(IPAddress.Any, AnyPort); 10internal static readonly IPEndPoint IPv6Any = new IPEndPoint(IPAddress.IPv6Any, AnyPort);
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (1)
20return new IPEndPoint(socketAddress.GetIPAddress(), socketAddress.GetPort());
System\Net\Sockets\Socket.cs (10)
26private static readonly IPEndPoint s_IPEndPointIPv6 = new IPEndPoint(s_IPAddressAnyMapToIPv6, 0); 158_rightEndPoint = new IPEndPoint( 166_rightEndPoint = new IPEndPoint( 192_remoteEndPoint = new IPEndPoint( 200_remoteEndPoint = new IPEndPoint( 897IPEndPoint remoteEP = new IPEndPoint(address, port); 963Connect(new IPEndPoint(address, port)); 1867remoteEP = new IPEndPoint(socketAddress.GetIPAddress().MapToIPv6(), socketAddress.GetPort()); 1986remoteEP = new IPEndPoint(socketAddress.GetIPAddress().MapToIPv6(), socketAddress.GetPort()); 3340remoteEP = new IPEndPoint(addr, ip.Port);
System\Net\Sockets\Socket.Tasks.cs (4)
135public Task ConnectAsync(IPAddress address, int port) => ConnectAsync(new IPEndPoint(address, port)); 144public ValueTask ConnectAsync(IPAddress address, int port, CancellationToken cancellationToken) => ConnectAsync(new IPEndPoint(address, port), cancellationToken); 201endPoint = new IPEndPoint(address, port); 243new IPEndPoint(parsedAddress, port) :
System\Net\Sockets\SocketAsyncEventArgs.cs (3)
771internalArgs.RemoteEndPoint = new IPEndPoint(address, port); 968_remoteEndPoint = new IPEndPoint(_socketAddress.GetIPAddress().MapToIPv6(), _socketAddress.GetPort()); 990_remoteEndPoint = new IPEndPoint(_socketAddress.GetIPAddress().MapToIPv6(), _socketAddress.GetPort());
System\Net\Sockets\TCPClient.cs (1)
155IPEndPoint remoteEP = new IPEndPoint(address, port);
System\Net\Sockets\TCPListener.cs (2)
44_serverSocketEP = new IPEndPoint(localaddr, port); 57_serverSocketEP = new IPEndPoint(IPAddress.Any, port);
System\Net\Sockets\UDPClient.cs (5)
69localEP = new IPEndPoint(IPAddress.Any, port); 73localEP = new IPEndPoint(IPAddress.IPv6Any, port); 353ipEndPoint = new IPEndPoint(addresses[i], port); 753Connect(new IPEndPoint(address, port)); 813IPEndPoint endPoint = new IPEndPoint(addr, port);