René's URL Explorer Experiment


Title: fix(devframe): skip ports held on another loopback address by DBAAZzz · Pull Request #461 · devframes/devframe · GitHub

Open Graph Title: fix(devframe): skip ports held on another loopback address by DBAAZzz · Pull Request #461 · devframes/devframe

X Title: fix(devframe): skip ports held on another loopback address by DBAAZzz · Pull Request #461 · devframes/devframe

Description: fix #460 If another server holds 127.0.0.1:, getPort from get-port-please still returns that port for localhost, because it tries to bind only one address. devframe then binds [::1]:, and requests to 127.0.0.1: go to the other server. This PR patches get-port-please. devframe bundles it, so the patch ships with devframe. For a loopback or wildcard host, getPort now also tries 127.0.0.1, ::1, 0.0.0.0 and ::. If one of them fails with EADDRINUSE or EACCES, the port is in use. Other errors, like EADDRNOTAVAIL when IPv6 is off, mean that the address does not exist, so they are ignored. The new test in dev.test.ts fails on main and passes with the patch, on Linux (IPv6 on) and on macOS. I will send the same change upstream for unjs/get-port-please#121. You can remove the patch after upstream releases it.

Open Graph Description: fix #460 If another server holds 127.0.0.1:<port>, getPort from get-port-please still returns that port for localhost, because it tries to bind only one address. devframe then binds [::1]:<...

X Description: fix #460 If another server holds 127.0.0.1:&lt;port&gt;, getPort from get-port-please still returns that port for localhost, because it tries to bind only one address. devframe then binds [...

Opengraph URL: https://github.com/devframes/devframe/pull/461

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:79d03995-6610-f83e-0695-66723bff6519
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE80A:35A6AA:33829:47D74:6AFB72E0
html-safe-nonce2ee89fed4fe7d244330e345d0535815faa212fa8644da7931a094fa726276164
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODBBOjM1QTZBQTozMzgyOTo0N0Q3NDo2QUZCNzJFMCIsInZpc2l0b3JfaWQiOiIxODY1MTExODMyMzczMTk1NDg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5e527e930805e7bb8e19e23d78f56556478eea30cc72d2fb01fff33f28e2609b
hovercard-subject-tagpull_request:5011437461
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/devframes/devframe/pull/461/files
twitter:imagehttps://avatars.githubusercontent.com/u/41032629?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/41032629?s=400&v=4
og:image:altfix #460 If another server holds 127.0.0.1:<port>, getPort from get-port-please still returns that port for localhost, because it tries to bind only one address. devframe then binds [::1]:<...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/devframes/devframe/pull/461/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F461%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F461%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/pull/461/files
Reloadhttps://github.com/devframes/devframe/pull/461/files
Reloadhttps://github.com/devframes/devframe/pull/461/files
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
antfuhttps://github.com/antfu
devframes:mainhttps://github.com/devframes/devframe/tree/main
DBAAZzz:fix/get-port-loopback-familieshttps://github.com/DBAAZzz/devframe/tree/fix/get-port-loopback-families
Conversation 3 https://github.com/devframes/devframe/pull/461
Commits 3 https://github.com/devframes/devframe/pull/461/commits
Checks 2 https://github.com/devframes/devframe/pull/461/checks
Files changed https://github.com/devframes/devframe/pull/461/files
Please reload this pagehttps://github.com/devframes/devframe/pull/461/files
fix(devframe): skip ports held on another loopback address https://github.com/devframes/devframe/pull/461/files#top
Show all changes 3 commits https://github.com/devframes/devframe/pull/461/files
ed51416 fix(devframe): skip ports held on another loopback address DBAAZzz Oct 26, 2026 https://github.com/devframes/devframe/pull/461/commits/ed514166f3a54cb8da1a8d564038631105bb558e
e81a08a Merge remote-tracking branch 'origin/main' into dbaazzz/fix/get-port-… antfubot Oct 30, 2026 https://github.com/devframes/devframe/pull/461/commits/e81a08a03b485a28273b203cff01f5e1eae1526b
873529d fix(devframe): listen on both loopback addresses for the dev server antfubot Oct 30, 2026 https://github.com/devframes/devframe/pull/461/commits/873529d6386c66e50d5e76494313900dc7f9b440
Clear filters https://github.com/devframes/devframe/pull/461/files
Please reload this pagehttps://github.com/devframes/devframe/pull/461/files
Please reload this pagehttps://github.com/devframes/devframe/pull/461/files
dev.test.ts https://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
cac.ts https://github.com/devframes/devframe/pull/461/files#diff-1b00bef8f634ab8665afcac2a6abe2672e175da95ca06f9e242a33ffcb9a3ee7
dev.ts https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
instance-shell.ts https://github.com/devframes/devframe/pull/461/files#diff-b7201157bb4da195993e2a8481f0dba03458a7e876da250e0d7e18fc3946371e
listen.ts https://github.com/devframes/devframe/pull/461/files#diff-99ba5d6274f496c099011241c7d42d5b3d45626f93e7c001cee3ed181f4b6fb2
dev.snapshot.d.ts https://github.com/devframes/devframe/pull/461/files#diff-5ffc189cf5d03310186df94a3fb9a333a4db1db72370029b6c6b0d832fa46e6d
packages/devframe/src/adapters/__tests__/dev.test.tshttps://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
View file https://github.com/DBAAZzz/devframe/blob/873529d6386c66e50d5e76494313900dc7f9b440/packages/devframe/src/adapters/__tests__/dev.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/461/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
https://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
https://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
https://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
https://github.com/devframes/devframe/pull/461/files#diff-aff2746d258c527ca303c21d5eac4607b130fd7c491fcfb3c06539ee4599c8c6
packages/devframe/src/adapters/cac.tshttps://github.com/devframes/devframe/pull/461/files#diff-1b00bef8f634ab8665afcac2a6abe2672e175da95ca06f9e242a33ffcb9a3ee7
View file https://github.com/DBAAZzz/devframe/blob/873529d6386c66e50d5e76494313900dc7f9b440/packages/devframe/src/adapters/cac.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/461/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/461/files#diff-1b00bef8f634ab8665afcac2a6abe2672e175da95ca06f9e242a33ffcb9a3ee7
https://github.com/devframes/devframe/pull/461/files#diff-1b00bef8f634ab8665afcac2a6abe2672e175da95ca06f9e242a33ffcb9a3ee7
https://github.com/devframes/devframe/pull/461/files#diff-1b00bef8f634ab8665afcac2a6abe2672e175da95ca06f9e242a33ffcb9a3ee7
https://github.com/devframes/devframe/pull/461/files#diff-1b00bef8f634ab8665afcac2a6abe2672e175da95ca06f9e242a33ffcb9a3ee7
packages/devframe/src/adapters/dev.tshttps://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
View file https://github.com/DBAAZzz/devframe/blob/873529d6386c66e50d5e76494313900dc7f9b440/packages/devframe/src/adapters/dev.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/461/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
https://github.com/devframes/devframe/pull/461/files#diff-53ddfd5069a5a06910304a7e26d0136cbac76d0cd0c59481558ce5d1fa2038cb
packages/devframe/src/node/instance-shell.tshttps://github.com/devframes/devframe/pull/461/files#diff-b7201157bb4da195993e2a8481f0dba03458a7e876da250e0d7e18fc3946371e
View file https://github.com/DBAAZzz/devframe/blob/873529d6386c66e50d5e76494313900dc7f9b440/packages/devframe/src/node/instance-shell.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/461/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/461/files#diff-b7201157bb4da195993e2a8481f0dba03458a7e876da250e0d7e18fc3946371e
https://github.com/devframes/devframe/pull/461/files#diff-b7201157bb4da195993e2a8481f0dba03458a7e876da250e0d7e18fc3946371e
https://github.com/devframes/devframe/pull/461/files#diff-b7201157bb4da195993e2a8481f0dba03458a7e876da250e0d7e18fc3946371e
https://github.com/devframes/devframe/pull/461/files#diff-b7201157bb4da195993e2a8481f0dba03458a7e876da250e0d7e18fc3946371e
packages/devframe/src/node/listen.tshttps://github.com/devframes/devframe/pull/461/files#diff-99ba5d6274f496c099011241c7d42d5b3d45626f93e7c001cee3ed181f4b6fb2
View file https://github.com/DBAAZzz/devframe/blob/873529d6386c66e50d5e76494313900dc7f9b440/packages/devframe/src/node/listen.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/461/{{ revealButtonHref }}
tests/__snapshots__/tsnapi/devframe/adapters/dev.snapshot.d.tshttps://github.com/devframes/devframe/pull/461/files#diff-5ffc189cf5d03310186df94a3fb9a333a4db1db72370029b6c6b0d832fa46e6d
View file https://github.com/DBAAZzz/devframe/blob/873529d6386c66e50d5e76494313900dc7f9b440/tests/__snapshots__/tsnapi/devframe/adapters/dev.snapshot.d.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/461/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/461/files#diff-5ffc189cf5d03310186df94a3fb9a333a4db1db72370029b6c6b0d832fa46e6d
https://github.com/devframes/devframe/pull/461/files#diff-5ffc189cf5d03310186df94a3fb9a333a4db1db72370029b6c6b0d832fa46e6d
Please reload this pagehttps://github.com/devframes/devframe/pull/461/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.