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

fix(database-mongo): Windows does not listen to localhost by default #694

Closed
wants to merge 4 commits into from
Closed

Conversation

idranme
Copy link

@idranme idranme commented May 24, 2022

No description provided.

@MaikoTan
Copy link
Member

what is the problem would be solved in this PR?
Theoretically the localhost and the 127.0.0.1 is equivalent, And you should not set the default port in this case because MongoDB requires no port in a SRV protocol.
see: #629

@idranme
Copy link
Author

idranme commented May 24, 2022

what is the problem would be solved in this PR? Theoretically the localhost and the 127.0.0.1 is equivalent, And you should not set the default port in this case because MongoDB requires no port in a SRV protocol. see: #629

Then remove the port

@idranme
Copy link
Author

idranme commented May 24, 2022

what is the problem would be solved in this PR? Theoretically the localhost and the 127.0.0.1 is equivalent, And you should not set the default port in this case because MongoDB requires no port in a SRV protocol. see: #629

This PR solves the MongoServerSelectionError: connect ECONNREFUSED ::1:27017

@MaikoTan
Copy link
Member

This PR solves the MongoServerSelectionError: connect ECONNREFUSED ::1:27017

obviously The localhost settings in your PC is set to the IPV6 protocol that caused the problem?

@idranme
Copy link
Author

idranme commented May 24, 2022

This PR solves the MongoServerSelectionError: connect ECONNREFUSED ::1:27017

obviously The localhost settings in your PC is set to the IPV6 protocol that caused the problem?

I can not confirm

@Anillc
Copy link
Member

Anillc commented May 24, 2022

This PR solves the MongoServerSelectionError: connect ECONNREFUSED ::1:27017

obviously The localhost settings in your PC is set to the IPV6 protocol that caused the problem?

I can not confirm

check your hosts file

@idranme idranme closed this May 24, 2022
@MaikoTan
Copy link
Member

This PR solves the MongoServerSelectionError: connect ECONNREFUSED ::1:27017

obviously The localhost settings in your PC is set to the IPV6 protocol that caused the problem?

I can not confirm

check your hosts file

Yup, that's the problem. But I'm skeptical that mongodb didn't support ipv6 address.

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

Successfully merging this pull request may close these issues.

3 participants