# Nginx 2줄 설정으로 접속자의 IP주소 보여주기

> Clean Markdown view of GeekNews topic #592. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=592](https://news.hada.io/topic?id=592)
- GeekNews Markdown: [https://news.hada.io/topic/592.md](https://news.hada.io/topic/592.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2019-09-25T08:44:51+09:00
- Updated: 2019-09-25T08:44:51+09:00
- Original source: [ecalamia.com](https://www.ecalamia.com/blog/show-ip-api-nginx/)
- Points: 5
- Comments: 3

## Topic Body

Show My IP 를 내 서버에 구현하기

location /ip {

    default_type text/plain;

    return 200 $remote_addr;

}

## Comments



### Comment 473

- Author: iolothebard
- Created: 2019-09-25T08:58:03+09:00
- Points: 1

https://www.myip.com/ ??

### Comment 474

- Author: xguru
- Created: 2019-09-25T09:43:35+09:00
- Points: 2
- Parent comment: 473
- Depth: 1

바퀴는 깔끔하게 다시 만들어야 제맛이죠..

### Comment 472

- Author: xguru
- Created: 2019-09-25T08:49:13+09:00
- Points: 2

https://hada.io/ip

해봤는데 잘되네요.
