web-platform-tests / web-platform-tests/wpt
Access Test Server from devices in same Network using local IP address or `web-platform-test.local`
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 6.2k
- Forks
- 3.9k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 586
Description
For some APIs (e.g. Presentation API) we need to access the Test Server e.g. running on a PC from other devices in the Network. This is not possible since the Test server only allows specific domains (defined in host file, see README.md). A possible solution is to advertise the Test Server in local Network using MDNS/DNS-SD (user tools like dns-sd or avahi). this is a example for how to do it using dns-sd:
$ dns-sd -P web-platform-test-service _http._tcp local 8000 web-platform-test.local 127.0.0.1
Then we need to allow the Test Server to accept requests to web-platform-test.local.
This solution can be also used to run local tests on mobile devices like Android or iOS in same network.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with README.md's host-file instructions and the test-server setup, then review the provided dns-sd example. Determine how the server currently restricts hostnames and how local-network discovery could fit. Done means the test server is reachable from another device using the local IP or web-platform-test.local, with the relevant local setup documented.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100