19 lines
227 B
Markdown
19 lines
227 B
Markdown
|
# Network tricks
|
||
|
|
||
|
## Check if a port is reachable
|
||
|
|
||
|
On the server :
|
||
|
```
|
||
|
# nc -l <your_port>
|
||
|
```
|
||
|
|
||
|
On a client machine :
|
||
|
```
|
||
|
$ nc -zv <server_ip> <your_port>
|
||
|
```
|
||
|
|
||
|
Or to check UDP port :
|
||
|
```
|
||
|
$ nc -zv -u <server_ip> <your_port>
|
||
|
```
|