Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- fullcalendar js
- opcpackage
- xcode swift memo
- js 전자서명
- outofmemoryerror 방지
- spring annotation
- 달력기능개발
- PostgreSQL
- ios app 개발
- jxls
- poi 대용량
- swift 계산기
- swift 메모장 만들기
- mysql
- 대용량엑셀업로드
- 전자서명기능구현
- 전자서명개발
- xlsx-streamer
- poi monitorjbl
- Xcode
- xssreader
- monitorjbl 엑셀
- xcode12.5.1
- Swift
- Oracle
- xssfworkbook
- jxls 엑셀
- js달력
- MSsql
- monitorjbl
Archives
- Today
- Total
web developer👩🏻💻
[JAVA] sever ip 얻는 방법 InetAddress.getLocalHost() 본문
728x90
InetAddress.getLocalHost();
public static String getServerIp() {
InetAddress local = null;
try {
local = InetAddress.getLocalHost();
}
catch ( UnknownHostException e ) {
e.printStackTrace();
}
if( local == null ) {
return "";
}
else {
String ip = local.getHostAddress();
return ip;
}
}
'Spring' 카테고리의 다른 글
[Spring] 파일 다운로드 구현 (0) | 2021.12.15 |
---|---|
컨트롤러 아닌곳에서 session 값 얻기 (0) | 2021.11.28 |
[Spring] WebSocket sockJS Q&A 실시간 알림 구현하기 (2) (3) | 2021.11.12 |
[Spring] WebSocket sockJS Q&A 실시간 알림 구현하기 (1) (0) | 2021.11.11 |
[Spring] javax.servlet.ServletException: No adapter for handler 해결방법 (0) | 2021.11.10 |