티스토리 뷰
728x90
fun ip(): String {
val socket = Socket()
socket.connect(InetSocketAddress("google.com", 80))
val ip = socket.localAddress.hostAddress
socket.close()
return ip
}
https://stackoverflow.com/questions/9481865/getting-the-ip-address-of-the-current-machine-using-java
Getting the IP address of the current machine using Java
I am trying to develop a system where there are different nodes that are run on different system or on different ports on the same system. Now all the nodes create a Socket with a target IP as th...
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
[sh] while loop (sub shell) not assign global variables -> for in loop (0) | 2023.02.16 |
---|---|
[kotlin] instanceOf list (is List<*>) (0) | 2023.02.14 |
[flutter] Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema (0) | 2023.02.14 |
[flutter] flutter_youtube (0) | 2023.02.14 |
[flutter] Unable to find bundled Java version (0) | 2023.02.14 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 리퍼럴 코드
- 유투브
- 김달
- 팔로워 수 세기
- 할인
- 인스타그램
- wlw
- 테슬라 레퍼럴 적용 확인
- 책그림
- COUNT
- 레퍼럴
- 테슬라 레퍼럴
- 테슬라 추천
- 모델 Y 레퍼럴
- 어떻게 능력을 보여줄 것인가?
- follower
- 테슬라 리퍼럴 코드 혜택
- 테슬라 레퍼럴 코드 확인
- Bot
- 테슬라 리퍼럴 코드 생성
- 테슬라 크레딧 사용
- Kluge
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라
- 모델y
- 개리마커스
- 클루지
- 연애학개론
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함