question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SocketManager NetIdentity SteamId is always 0

See original GitHub issue

Hello, I’ve created a class derived from SocketManager, then created a normal socket via

SteamNetworkingSockets.CreateNormalSocket<Server>(address);

then I did that

public override void OnConnected(Connection connection, ConnectionInfo info)
{
        Console.WriteLine(info.Identity.SteamId.Value);
}

and the output was just 0. Why? How can I get user’s steamId? i’ve also tried doing the same thing in OnConnecting, OnMessage methods, the result was same.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
yuraj11commented, Jan 8, 2021

There’s an issue in ConnectionInfo line:

public NetIdentity Identity => (NetIdentity) this.address;

I think this is a typo and should be:

public NetIdentity Identity => this.identity;

@garrynewman ^

the data is there I have checked with the debugger.

1reaction
ghostcommented, Nov 10, 2020

Is there any update on this? @garrynewman For now, wrapping connections with token-based authorization seems like the only option to authorize clients, which is really stupid even for a bandaid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

STEAM_0:0:0 why dont i have a steam id? :: Help and Tips
When I search it up on the sites that claim to be able to find out, its always 0:0:0. When I Type status...
Read more >
Steamworks.SteamNetworking.SendP2PPacket - Wiki
Sends a P2P packet to the specified user. This is a session-less API which automatically establishes NAT-traversing or Steam relay server connections.
Read more >
Steamworks.Data.Connection - Wiki - facepunch
Returns detailed connection stats in text format. Useful for dumping to a log, etc. Result Flush(). Flush any messages waiting on the Nagle...
Read more >
Facepunch.Steamworks Versions
View the latest Facepunch.Steamworks versions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found