Connect to websocket from Windows command line - windows

Is it at all possible to connect to a websocket from the Windows command line?
I have used WSCAT from the Mac Terminal, but I can't seem to find an alternative.
Any help would be appreciated.

There is no tool built in to Windows that will work with WebSockets.
Although you can use telnet or netcat to make a connection, they are simple TCP clients and know nothing about WebSockets. So, either find a 3rd party WebSocket command-line client, or write your own.

You can instal wscat on Windows (npm install -g wscat). It works just as it would work on other OS.
Check out https://www.npmjs.com/package/wscat

Related

UI on debian VPS on Ionos

I just get a VPS on Ionos, in which debian is running.
I use it to run selenium script with python but I would like to control what the script is doing when I get errors. So I would to install an UI and control it with vnc viewer.
Anyone knows if it possible ?
If yes, which ui I can install on my VPS ? and which vncserver package is the the best ?
Thank you
You can "apt install XFCE4" Desktop, then you have a UI.
You can access this desktop from Windows machines when you "apt install XRDP" and login via Remote Desktop.
Dont forget to open RDP Port 3389 in the firewall.

Connecting VPN by Mac OS terminal

I'm trying to install Firebase in to my Xcode by using mac os terminal command pod install (CocoaPods) , but it always has overtime, and connection breaks, so i cannot install it.
So here is a problem, i live in China, and i can't connect any Google services via terminal(GitHub also), but i have full access to all services using my VPN App.
Few solutions that i found - to create a custon VPN connection by command networksetup -connectpppoeservice "myVPN" but it doesnt work too, because i'm using VPN desktop App, and have no idea what data i need to type inside. Also i tried to networksetup -setv6off "Wi-Fi", but it didn't help too. I read people said that solution was just to turn off VPN, but in my case i have the same result with VPN ON/OFF.
So i have a question - how can i manage traffic from terminal through my VPN app to reach servers?
My MacOS version: 10.15.7 Catalina
errorMessage
i found how to solve my problem:
i opened a socket port from my VPN distributor
git config --global http.proxy 127.0.0.1:****

How to install Confluent Hub Client in Windows?

How to install Confluent Hub Client in Windows?
I'm not sure you can. The TARGZ package contains a Unix script, not a windows one.
That being said, you can still use WSL, Docker, Cygwin, a VM, etc. Then run Kafka Connect from there.

OSX cannot close server ports properly

I use local server enviroments on my mac. But every time I close the server by terminal process is still working so when I want to turn it on again I've got error that port I used previously is already occupied. So I need to find and kill that process with
netstat -vanp tcp | grep [PORT]
command which is very annoing and time-wasting. This is not related to any server technology since I've got the same problem using both Node.js and Ruby on Rails. It's something wrong with OSX. How can I fix that issue? I use OSX El Capitain version 10.11.6

xterm on sles 11.2

I am trying to get xterm to work on sles 11.2. I did it recently on 10.3 and it was really simple but nothing works on 11.2.
On 10.3 I installed xterm on the server and ran xming for windows on my local PC. Then from a putty went to SSH > X11 > Enable X11 forwarding. When I connected to the server I could run xterm and it worked straight away.
However, when I do the same thing on Sles 11.2 and I try and run xterm it says the display isn't set.
Is there something special I need to do for 11.2 to make it work. There isn't any firewalls enabled so this isn't the problem.
Thanks for any help you can provide.
UPDATE
I have changed the SSH config files as suggested by twalberg but still no luck.
In /etc/ssh/ssh_config I have the following
Host *
# ForwardAgent no
ForwardX11 yes
ForwardX11Trusted yes
In /etc/ssh/sshd_config I have the following
X11Forwarding yes
I then restarted ssh using /etc/init.d/ssh restart and then performed the same steps as mentioned in the question with putty but still getting the display not found
I suspect sshd on your 11.2 box is configured to not allow X11 forwarding for security reasons. It needs to be enabled on the client side (which you are doing) and on the server side (in sshd_config) for it to work, so you might need to tweak the config on the SLES system.
I've managed to find out the problem. I need to install x-core package in yast. Didn't need to do this in sles 10.3 but apparently for 11.2 you do.
Thanks all for your help and suggestions.

Resources