[1.0.0-pre.65] (IN-39749) Relay Support Sample Throws Error, Driver Unable To Start Listening

Using most recently available netcode samples:

Opening frontend scene and enabling “Relay Support” to create a client-host instance results in this error:

“Driver with ID 1 uses IPCNetworkInterface. The endpoint used for listening is using Port == 0 but a non-zero port is required for this interface. The interface can’t start listening”

A̶t̶t̶e̶m̶p̶t̶i̶n̶g̶ ̶t̶o̶ ̶f̶i̶x̶ ̶u̶s̶i̶n̶g̶ ̶a̶ ̶s̶p̶e̶c̶i̶f̶i̶e̶d̶ ̶p̶o̶r̶t̶ ̶u̶s̶i̶n̶g̶ ̶N̶e̶t̶w̶o̶r̶k̶E̶n̶d̶p̶o̶i̶n̶t̶.̶A̶n̶y̶I̶p̶v̶4̶.̶W̶i̶t̶h̶P̶o̶r̶t̶(̶)̶i̶n̶s̶t̶e̶a̶d̶ ̶o̶f̶ ̶p̶r̶o̶v̶i̶d̶i̶n̶g̶ ̶A̶n̶y̶I̶p̶v̶ ̶i̶n̶t̶o̶ ̶s̶e̶r̶v̶e̶r̶ ̶l̶i̶s̶t̶e̶n̶i̶n̶g̶ ̶r̶e̶s̶u̶l̶t̶s̶ ̶i̶n̶:̶

"̶S̶o̶c̶k̶e̶t̶ ̶c̶r̶e̶a̶t̶i̶o̶n̶ ̶f̶a̶i̶l̶e̶d̶ ̶(̶e̶r̶r̶o̶r̶ ̶6̶7̶1̶0̶8̶8̶6̶5̶:̶ ̶"̶A̶d̶d̶r̶e̶s̶s̶ ̶i̶n̶ ̶u̶s̶e̶ ̶(̶0̶x̶0̶4̶0̶0̶0̶0̶0̶1̶)̶ ̶-̶ ̶O̶n̶l̶y̶ ̶o̶n̶e̶ ̶u̶s̶a̶g̶e̶ ̶o̶f̶ ̶e̶a̶c̶h̶ ̶s̶o̶c̶k̶e̶t̶ ̶a̶d̶d̶r̶e̶s̶s̶ ̶(̶p̶r̶o̶t̶o̶c̶o̶l̶/̶n̶e̶t̶w̶o̶r̶k̶ ̶a̶d̶d̶r̶e̶s̶s̶/̶p̶o̶r̶t̶)̶ ̶i̶s̶ ̶n̶o̶r̶m̶a̶l̶l̶y̶ ̶p̶e̶r̶m̶i̶t̶t̶e̶d̶.̶ ̶ ̶(̶W̶i̶n̶E̶r̶r̶o̶r̶:̶0̶0̶0̶0̶2̶7̶4̶0̶)̶"̶

N̶o̶ ̶m̶a̶t̶t̶e̶r̶ ̶t̶h̶e̶ ̶s̶e̶l̶e̶c̶t̶i̶o̶n̶ ̶o̶f̶ ̶p̶o̶r̶t̶ ̶c̶o̶u̶n̶t̶ ̶(̶o̶t̶h̶e̶r̶ ̶t̶h̶a̶n̶ ̶0̶ ̶o̶f̶ ̶c̶o̶u̶r̶s̶e̶)̶,̶ ̶s̶o̶c̶k̶e̶t̶ ̶c̶r̶e̶a̶t̶i̶o̶n̶ ̶a̶l̶w̶a̶y̶s̶ ̶f̶a̶i̶l̶s̶.̶

Edit: Ignore the second half, that was my fault.

Simple modification to netcode sample project required to make it work:

In RelayFrontend, replace server endpoint with the following. Port number arbitrary and whatever you want.
NetworkEndpoint.AnyIpv4.WithPort(7979);

Relay sample will work now.

problem already solved

1 Like

As in solved next netcode release or solved now and my computer is bad.

Also, the sample recommends usage of “AnyIpv4” for client endpoint when it should be (or at least force set by transport via warning) to “LoopbackIpv4” in the case of client-host.

I had to interrupt my answer, sorry :slight_smile:
There were many problem in relation to that sample. We solver them, and all fixes (also netcode package) will be available in the next release.

1 Like