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

Error when connecting to a server #225

Open
bettercalldelta opened this issue Apr 21, 2021 · 2 comments
Open

Error when connecting to a server #225

bettercalldelta opened this issue Apr 21, 2021 · 2 comments
Labels

Comments

@bettercalldelta
Copy link

bettercalldelta commented Apr 21, 2021

So I tried to write my first pycraft code, which was basically the rewrite of start.py with some unimportant things removed.

But it keeps displaying me this error when I start the file:

Traceback (most recent call last):
  File "no i will not give the path/connect.py", line 15, in <module>
    connection.connect()
  File "no i will not give the path/minecraft/networking/connection.py", line 245, in connect
    self._connect()
  File "no i will not give the path/minecraft/networking/connection.py", line 275, in _connect
    self.socket.connect((self.options.address, self.options.port))
socket.gaierror: [Errno -2] Name or service not known

I thought "socket" module doesn't recognize the ip, so I triple checked the hostname and port. It is right. But the error is still there.

@mindforger
Copy link

mindforger commented Apr 21, 2021

could you provide a bare minimum of details what options you used (with fake data if you are concerned, but not something like < my address here > but 127.0.0.1 if you used an ip for server address)? you just told basically

i changed something and it does not work

which is similar to say i worked on the motor of my car and now it does not run ... no mechanic could help you with that info ...

@Cassy-Lee
Copy link

it look like something wrong with your DNS

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

No branches or pull requests

4 participants