ayumax / ObjectDeliverer

ObjectDeliverer is a data transmission / reception library for Unreal Engine (C ++, Blueprint).
https://www.unrealengine.com/marketplace/ja/slug/objectdeliverer
MIT License
163 stars 37 forks source link

How to perform valid UDP bidirectional connection #31

Closed arziel12 closed 4 years ago

arziel12 commented 4 years ago

Hello, for some time i still facing the same issue, but for now i moved from local (which i fixed in past, and even my local wifi network), but for now i facing a mobile hotspot.

My issue is still the same, i can't create a valid bidirectional client-server udp communication.

The client is behind the NAT and makes traversing the ports, i know what the issue is.

There should be

But the problem is i don't know on what port i should listen and also, if i try listen to same port which i bound for sender, it failed because is already in use.

Do i something wrong? It just seems for me I something missleading, cause this must be most trivial thing, which is for sure implemented somehow.

Can you please help me with some response, cause i just can't get it worked.

ayumax commented 4 years ago

Details are unknown because I am not used to communication beyond NAT. However, if NAT supports bidirectional translation, I don't think you need to know the private IP address and port.

arziel12 commented 4 years ago

Client itself needed that information because he must start listen at that port. :)

arziel12 commented 4 years ago

After some hours, i make it work with combination of getnamo's udp wrapper, which i use for perform udp hole punch. :]