WebAssembly / design

WebAssembly Design Documents
http://webassembly.org
Apache License 2.0
11.42k stars 694 forks source link

Is it possible to run tcptraceroute with wasm #1491

Closed SachiaLanlus closed 9 months ago

SachiaLanlus commented 1 year ago

I know the ordinary traceroute use ICMP to do the route trace. And the ICMP is not supported in wasm or say the web browser itself. But when using tcptraceroute, it use TCP SYN to do the route trace.

Is it possible to do the tcptraceroute inside the webbrowser with wasm? I think it would be very helpful for the people who need to do the route trace but not familiar with network related tools.

sunfishcode commented 9 months ago

No, this is not possible, because browsers do not have APIs that support emitting TCP SYN packets directly.