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

Running into a socket creation problem #717

Closed
lewislarsen opened this issue Oct 23, 2023 · 1 comment
Closed

Running into a socket creation problem #717

lewislarsen opened this issue Oct 23, 2023 · 1 comment

Comments

@lewislarsen
Copy link

lewislarsen commented Oct 23, 2023

Hi there,

I am working on a little project that utilises this package and I've run into a little problem when trying to query servers.

The error:

GameQ\Exception\Query: GameQ\Query\Native::create - Error creating socket to server 127.0.0.1:0. Error: Can't assign requested address in /Users/lewislarsen/sites/aura/vendor/austinb/gameq/src/GameQ/Query/Native.php:126

I think it's due to my local development environment, I am using Laravel Valet which sends all localhost requests through nginx and resolves them to .test tld.

I was passing a Minecraft server (mc.hypixel.net:25565) to GameQ with no query port specified. I do have debug mode option for the library enabled.

I am using version 3.1.0 of GameQ with PHP 8.2.11 on MacOS Sonoma.

If you have any recommendations on resolving this, I would be extremely grateful.

@lewislarsen
Copy link
Author

Looks like a computer restart fixed it, weird! Thank you. :)

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

1 participant