Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentException: Invalid Socket with FakeIP #725

Open
NBG-Zorian opened this issue Jul 14, 2023 · 1 comment
Open

ArgumentException: Invalid Socket with FakeIP #725

NBG-Zorian opened this issue Jul 14, 2023 · 1 comment
Assignees

Comments

@NBG-Zorian
Copy link

Describe the bug
Requesting FakeIP for the second time (without restarting steam) will cause ArgumentException: Invalid Socket. If steam is restarted, then everything works fine. Reprodusable both in editor and builds.

To Reproduce
Steps to reproduce the behavior:

Just create fake relay server. For the first time it will be successful. It is possible to join, etc. Second time (after application is closed, or unity) it fails.

Calling Code
1.

SteamClient.Init(appID, asyncCallbacks);
SteamNetworkingSockets.RequestFakeIP(numberOfVirtualPorts);//for example 1 virtual port
  1. Create fake sockets
SteamNetworkingSockets.CreateRelaySocketFakeIP<SteamTransportSocketManager>(virtualPort);//for example passing index 0

Do we have some kind of workaround or a way to do it differently?

@NBG-Zorian
Copy link
Author

Still relevant. Have anyone encountered it? Maybe I am using FakeIP in a wrong way? Can find any information anywhere..
Help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants