Need a Reliable Random TCP Port Generator – Any Recommendations or Tools You Trust?

11 Replies, 1480 Views

For a quick and dirty solution, you can use PowerShell to generate random tcp ports. Here’s a one-liner:

```powershell
Get-Random -Minimum 1024 -Maximum 65535
```

It won’t check if the port is in use, but it’s a start. You can combine it with a port scanner for better results.

Messages In This Thread



Users browsing this thread: 1 Guest(s)