You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WinSocat is a socat-like program specific on Windows platform. It can bridge Windows named pipe and other general I/O, e.g., STDIO, TCP, the STDIO of Process.
WinSocat is built under .Net 6.0. Make sure the corresponding .Net runtime is installed before using it.
10
+
WinSocat is a socat-like program specific on Windows platform. It can bridge Windows named pipe and other general I/O, e.g., STDIO, TCP, the STDIO of Process.
8
11
9
12
## Installation
10
13
11
-
You can download binary from [release](https://github.com/firejox/WinSocat/releases), or build from source.
14
+
[Install .NET 6 or newer](https://get.dot.net) and install via `dotnet tool`
15
+
16
+
```
17
+
dotnet tool install -g winsocat
18
+
```
12
19
13
20
## Command Form
14
21
@@ -18,41 +25,46 @@ The WinSocat is accept two address pattern
18
25
winsocat.exe [address1] [address2]
19
26
```
20
27
21
-
The `address1` can accept `STDIO`, `TCP-LISTEN`, `TCP`, `NPIPE`, `NPIPE-LISTEN`, `EXEC`, `WSL` socket types.
28
+
The `address1` can accept `STDIO`, `TCP-LISTEN`, `TCP`, `NPIPE`, `NPIPE-LISTEN`, `EXEC`, `WSL`, `UNIX`, `UNIX-LISTEN` socket types.
22
29
23
-
The `address2` can accept `STDIO`, `TCP`, `NPIPE`, `EXEC`, `WSL` socket types.
30
+
The `address2` can accept `STDIO`, `TCP`, `NPIPE`, `EXEC`, `WSL`, `UNIX` socket types.
24
31
25
32
## Examples
26
33
27
34
* It can bridge standard input/output and tcp connection to address **127.0.0.1** on port **80**.
28
35
```
29
-
winsocat.exe STDIO TCP:127.0.0.1:80
36
+
winsocat STDIO TCP:127.0.0.1:80
30
37
```
31
38
32
39
* It can forward from Windows named pipe to remote tcp socket.
33
40
```
34
-
winsocat.exe NPIPE-LISTEN:myPipe TCP:127.0.0.1:80
41
+
winsocat NPIPE-LISTEN:myPipe TCP:127.0.0.1:80
35
42
```
36
43
37
44
* It can use Windows named pipe for network connection
0 commit comments