---
title: "How do I convert a numeric IP address like 192.18.97.39 into a hostname?"  
description: "How do I convert a numeric IP address like 192.18.97.39 into a hostname?"  
author: "Anonymous User"  
published: 2011-05-21  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/990/how-do-i-convert-a-numeric-ip-address-like-192-18-97-39-into-a-hostname  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# How do I convert a numeric IP address like 192.18.97.39 into a hostname?

```
String hostname = InetAddress.getByName("192.18.97.39").getHostName
```

## Answers

### Answer by Anonymous User

```
String hostname = InetAddress.getByName("192.18.97.39").getHostName
```


---

Original Source: https://www.mindstick.com/interview/990/how-do-i-convert-a-numeric-ip-address-like-192-18-97-39-into-a-hostname

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
