https://github.com/loosedwhale/getrandomipadress
https://github.com/loosedwhale/getrandomipadress
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loosedwhale/getrandomipadress
- Owner: LoosedWhale
- Created: 2024-01-18T09:25:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-18T09:30:52.000Z (over 1 year ago)
- Last Synced: 2025-02-13T23:45:06.405Z (3 months ago)
- Language: C#
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GetRandomIpAdress
``` cs
public static string GetRandomIpAddress()
{
var random = new Random();
return $"{random.Next(1, 255)}.{random.Next(0, 255)}.{random.Next(0, 255)}.{random.Next(0, 255)}";
}
```