KestrelServerOptions.ListenAnyIP Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ListenAnyIP(Int32) |
Listens on all IPs using IPv6 [::], or IPv4 0.0.0.0 if IPv6 is not supported. |
ListenAnyIP(Int32, Action<ListenOptions>) |
Listens on all IPs using IPv6 [::], or IPv4 0.0.0.0 if IPv6 is not supported. |
ListenAnyIP(Int32)
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
Listens on all IPs using IPv6 [::], or IPv4 0.0.0.0 if IPv6 is not supported.
public:
void ListenAnyIP(int port);
public void ListenAnyIP (int port);
member this.ListenAnyIP : int -> unit
Public Sub ListenAnyIP (port As Integer)
Parameters
- port
- Int32
Applies to
ListenAnyIP(Int32, Action<ListenOptions>)
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
- Source:
- KestrelServerOptions.cs
Listens on all IPs using IPv6 [::], or IPv4 0.0.0.0 if IPv6 is not supported.
public:
void ListenAnyIP(int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void ListenAnyIP (int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.ListenAnyIP : int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub ListenAnyIP (port As Integer, configure As Action(Of ListenOptions))
Parameters
- port
- Int32
- configure
- Action<ListenOptions>