vpinon / tcp_over_websocket

1 stars 0 forks source link

$http_proxy Missing value after '-P'. #1

Open ccqedq opened 2 years ago

ccqedq commented 2 years ago

After executing the command:./web2tcp -u ws://tcp2web.example.com:8080 -p 8022 -P $http_proxy an error has occurred : Missing value after '-P'.

vpinon commented 2 years ago

Hello, If you defined the http_proxy environment variable? (pointing to your proxy IP/URL)

ccqedq commented 2 years ago

I don't know how to set it. Can you provide detailed operation and I tried to use "serverSocket->setProxy(QNetworkProxy::NoProxy)" instead of defining http_proxy,it connected successfully, but did not receive any message from web Server

vpinon commented 2 years ago

Are you running the server somewhere? Are you trying the client in a network behind a proxy? If so your browser probably has proxy settings (an URL or IP address and a port number) that you can pass with the -P argument, or set the environment variable: export http_proxy=<URL>:<PORT> under Linux (bash shell), or in Windows you must look for "environment variables" in system settings (I don't remember the shell syntax)