# What's my IP?

**URL:** https://forum.juce.com/t/whats-my-ip/7245
**Category:** General JUCE discussion
**Created:** [August 2, 2011, 9:53pm UTC](https://forum.juce.com/t/whats-my-ip/7245 "2011-08-02T21:53:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mike](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mike/32/629_2.png) [@Mike](https://forum.juce.com/u/Mike)
#### Post date: [August 2, 2011, 9:53pm UTC](https://forum.juce.com/t/whats-my-ip/7245/1 "2011-08-02T21:53:52Z")

</div>

Hi,  
I’m using the InterprocessConnectionServer to listen for incoming connections from other computers on the LAN.  
To aid with the connection wish to display on the app window, what IP you’d need to connect.

(Normally, you’d not specify this address your self so you probably don’t know it, whereas it would be “all available addresses”,  
including 127.0.0.1 and the interface IP in question.)

Is there a Juce API to reveal the IP address you are listening to?

I’d be grateful for any help you might have. Worst case, I’d just use the different OS APIs.

/Michael

---

<div class="post-metadata">

### Author: ![jordanh](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jordanh](https://forum.juce.com/u/jordanh)
#### Post date: [August 2, 2011, 11:39pm UTC](https://forum.juce.com/t/whats-my-ip/7245/2 "2011-08-02T23:39:31Z")

</div>

I haven’t used these classes myself yet, but looking at the docs, it seems that when you override createConnectionObject you must create and return an InterprocessConnection? Then you can call InterprocessConnection::getHostName?

---

<div class="post-metadata">

### Author: ![Mike](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mike/32/629_2.png) [@Mike](https://forum.juce.com/u/Mike)
#### Post date: [August 3, 2011, 7:50am UTC](https://forum.juce.com/t/whats-my-ip/7245/3 "2011-08-03T07:50:23Z")

</div>

> [@jordanh](#):
>
> I haven’t used these classes myself yet, but looking at the docs, it seems that when you override createConnectionObject you must create and return an InterprocessConnection? Then you can call InterprocessConnection::getHostName?

Sorry, wont work, for two reasons. getHostName is the address of the connecting client, whereas I need to know my own server address. Also, when returning the InterprocessConnection object, there has already been a connection so there’s a causality problem there… 😉

Thank you anyway. I appreciate it 🙂
