Skip to content

fix: Check localhost for grpc connection before other ips #4274

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mkundu1
Copy link
Contributor

@mkundu1 mkundu1 commented Jul 11, 2025

This is a potential fix for #4233. We have seen PyFluent can connect to Fluent using localhost as the ip in abhishekchitwar's system.

@github-actions github-actions bot added the bug Issue, problem or error in PyFluent label Jul 11, 2025
Comment on lines +94 to +98
# Check if we can establish a gRPC connection using localhost first
# before trying other IPs. It has been observed that in some systems,
# although we can establish a test gRPC connection using one of the
# resolved IP addresses in addrinfo, PyFluent fails to connect to Fluent
# using that IP address. Using localhost usually helps in such cases.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thanks for the information.

Copy link
Collaborator

@hpohekar hpohekar Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was a platform specific issue (Windows only). Both the users reported for Windows only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue, problem or error in PyFluent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants