---
title: "JAVA 获取本机IP"
author: "Carterslam"
date: "2011-08-30T16:18:09Z"
tags: []
categories: ["非技术"]
slug: "java-ip"
draft: false
lastmod: "2011-08-30T16:18:09Z"
id: 1161556
url: "https://carterslam.iteye.com/blog/1161556"
---

InetAddress.getLocalHost().getHostAddress()