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

Can't connect over LAN #11

Open
SondreNjaastad opened this issue Oct 8, 2016 · 2 comments
Open

Can't connect over LAN #11

SondreNjaastad opened this issue Oct 8, 2016 · 2 comments

Comments

@SondreNjaastad
Copy link

Hi!

I'm developing an application where i have to send the same data to 2 diffrent http servers.

My issue is that i can get data when i'm using 127.0.0.1 or localhost, but when i moce the csgo spectator client to another computer, i can't get any data (Have tried running it as an administrator)

I used the sample JS and node to test external connection, and that worked fine.

So from Node; Local and remote works
From C#: Local works but not remote

Have allso tried diffrent ports and turning firewall off (This shouldn't be an issue as the node sample from valve is working)

I'm a misisng something here?

Thanks

@dnn799
Copy link

dnn799 commented Oct 21, 2016

The library is hardcoded to work on localhost. You can fix it by cloning it and adding a string _Host field that is gonna take your http://ip:port/, around line 80 (gamestatelistener.cs) and replacing the argument for _Listener.Prefixes.Add(_Host) in the start function. The listener created in the constructor does nothing since it's replaced by a new one whenever you run start().

Hope this helps.

@brunopbarrote
Copy link

I dont think just add it will work, since httplistener apparently cant recognize the format like this
"xxx.xxx.xxx.xx:27015" for example.

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

3 participants