---
title: "命令行获取本机公网 IP 地址"
author: "dongwei_6688"
date: "2014-07-28T15:37:06Z"
tags: []
categories: ["操作系统"]
slug: "ip"
draft: false
lastmod: "2014-07-28T15:37:06Z"
id: 2097332
url: "https://dongwei.iteye.com/blog/2097332"
---

在命令行里运行如下命令：

```
$ curl ifconfig.me 
106.120.210.35
```