Field DefaultConnectAddress
The default address to connect to when using auto connect (`AutoConnectPort` is not zero). If this value is `NetworkEndPoint.AnyIpv4` auto connect will not be used, even if the port is specified. This is to allow auto listen without auto connect.
The address specified in the `PlayMode Tools` window takes precedence over this when running in the editor (in `PlayType.Client`). If that address is not valid or you are running in a player, then `DefaultConnectAddress` will be used instead.
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public static NetworkEndpoint DefaultConnectAddress
Returns
Type | Description |
---|---|
NetworkEndpoint |
Remarks
Note that the DefaultConnectAddress.Port
will be clobbered by the AutoConnectPort
if it's set.