-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Fix find port for IPv4 only environments #16216
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Interesting input:
Seems it is better to probe v4 first. |
That's what the Python bindings do. |
Ready for review. Now we prefer IPv4, and fallback to IPv6. |
Thanks, simple and straightforward. |
User description
Continuation of #16016
🔗 Related Issues
Fixes #16214
💥 What does this PR do?
Fall back to IPv4
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Add IPv4 fallback for port finding in IPv6-disabled environments
Implement robust error handling for socket creation and binding
Maintain IPv6 dual-mode preference with graceful degradation
Diagram Walkthrough
File Walkthrough
PortUtilities.cs
Add IPv4 fallback to port utilities
dotnet/src/webdriver/Internal/PortUtilities.cs