Relayed/Direct Connection Problem
Hi)
I faced with a problem with a high ping. I logged all staff and found that this is because of Relayed connection. I started to dig into this and created a small server and client. I deployed my servers on a small virtual machine on aws and did not open firewall for any game port. And what I found that even on the same my machine in random way I can connect from a client on my machine to the server sometimes as a Direct but sometimes as a Relayed. This is very strange because my network settings did not change not on a client and not on a server side.
what I see on the client side when I am getting Relayed connection (I hided ips):
<color=#144078>[Fusion]</color> Received from [0] :: [ReflexiveInfo: ActorNr=1, PublicAddr=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], PrivateAddr=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=10.1.10.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,17366196466007080960,56100]], NatType=FullCone, UniqueId=8121998569737741081, ProtocolVersion=V1_2_3, FusionSerializationVersion=1.1.6, CustomData=]
<color=#144078>[Fusion]</color> Connecting to [NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [1/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [2/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [3/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [4/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [5/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [6/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: -1, NativeAddress: [Address Ip=1.1.1.1 Port=56100], IsIPv6: False, IsRelayAddr: False, [0,9148147930933166080,56100]], UniqueId=-5840727627441834532] [7/10]
<color=#144078>[Fusion]</color> Connection Attempt: [NetConnection: RemoteAddress=[NetAddress: IsValid: True, ActorId: 1, NativeAddress: [Address Ip=:: Port=0], IsIPv6: False, IsRelayAddr: True, [0,0,8589934592]], UniqueId=-5840727627441834532] [8/10]
Maybe someone know, what it could be ?
Thanks.