일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- .net
- csharp
- chashtag
- commit
- Visual Studio
- C#
- windows10
- ListView
- windows
- Coding
- git
- convert
- mysql
- nullable
- Binding
- programmers
- Process
- log
- dotNET
- coding-test
- string
- IValueConverter
- 코딩테스트
- algorithm
- File
- WPF
- Github
- tls
- Microsoft
- logging
Archives
- Today
- Total
목록Generator (1)
CHashtag
[C#] 랜덤한 ip 생성하기 (ipv4)
안녕하세요. using System; using System.Net; public class Ipv4AddressGenerater { public static IPAddress Generate() { var data = new byte[4]; new Random().NextBytes(data); IPAddress ip = new IPAddress(data); return ip; } } 오늘은 랜덤한 IP주소를 생성해야할 때 생성하는 방법에 대해 알려드리고자 합니다. 내용이 간단하니 바로 코드로 보시죠. 다만, IP를 생성한다고 실제 사용가능한 IP가 생성되는 것이 아닌 IPV4형식의 0.0.0.0~255.255.255.255 사이의 값이 무작위로 생성되는 것이므로 사용에 유의하시기 바랍니다. https:..
C#
2022. 1. 25. 21:24