i need proxy server to connect host and client in different network
- i start a proxy server with ip xxx:10746
- i start host server with proxy server enabled, and connect to the proxy server 10746, everything goes well
- and the host server be given a new port 50110 by the proxy server
- i start a client without proxy server enabled,
- client connect the proxy server with port 50110, and then connected to the host, it all works well
- client player and see host player , host can see client also
- but they can’t see the movement between each other
i have debuged many times
and it seems that
when client connect to host, the proxy server can relay the correct message ID: ID_REQUEST_CLIENT_INIT
also host can reply a correct msg : ID_CLIENT_INIT by proxy server
but when client move, the proxy server relay a message with ID unknown : 0; but relay to right host server address
and when server move, the proxy server relay a message with ID unknow : 5; even relay to wrong client address
any one can help me??? thanks a lot
have i missed somewhere?
the only thing to get started with optimization is the profiler. Run it during your game and check the call hierarchy to see what takes up a lot of performance. Then try to find better solutions for those things that are slow. In this particular case it is easy to find as it really sticks out. apart from that there are certain "go-to optimizations" which are commonly recommended throughout the web, such as to use
– Captain_PineappleCompareTag. General advice - please try to follow it: don't get lost in optimization. Microoptimization of things that do not need optimization is just wasted time.