nwtgck / piping-server

Infinitely transfer between every device over pure HTTP with pipes or browsers
MIT License
2.9k stars 153 forks source link

Some websites cannot implement port forwarding. #956

Open perlerer opened 2 months ago

perlerer commented 2 months ago

I tested it and found that generally the established piping server can implement port forwarding. But there are exceptions, such as https://piping.maldun.com/. This website can provide basic piping services, but port forwarding cannot be achieved through netcat or socat. What is the reason? Is there any way to implement port forwarding on this kind of website?

nwtgck commented 1 month ago

@perlerer

Could you check the server supports data streaming? You can use curl like the following video:

https://github.com/nwtgck/piping-server/assets/10933561/fa696460-23a5-4264-8fcd-4ecb39b6e219

# sender
curl -T- https://ppng.io/mytext
# receiver
curl https://ppng.io/mytext

If you don't have live text stream, the port forwarding does not work with the server. I guess it is behide a reverse proxy such as Nginx, Cloudflare or something. These proxies may not support streaming response.