# Get OSC message sender remote port: deprecated?

**URL:** https://discourse.libcinder.org/t/get-osc-message-sender-remote-port-deprecated/1330
**Category:** CinderBlocks
**Created:** [October 17, 2018, 1:50pm UTC](https://discourse.libcinder.org/t/get-osc-message-sender-remote-port-deprecated/1330 "2018-10-17T13:50:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![totalgee](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/totalgee/32/274_2.png) [@totalgee](https://discourse.libcinder.org/u/totalgee)
#### Post date: [October 17, 2018, 1:50pm UTC](https://discourse.libcinder.org/t/get-osc-message-sender-remote-port-deprecated/1330/1 "2018-10-17T13:50:28Z")

</div>

Hi there, I’ve been using the old (0.9.0) OSC Cinder block, but would like to switch to the new (ASIO-based) block included with Cinder 0.9.1. However, I was relying on the capability to get the origin address and port for a received OSC (UDP) message, using `msg->getRemoteIp()` and `msg->getRemotePort()`. But it seems the port-accessing functionality has been removed – I see there is a `msg->getSenderIpAddress()`, but nothing to get the remote port.

Previously I was getting the remote IP endpoint (address+port) of the first client to send my application a message, and then creating a new Sender to communicate with that endpoint. Now, I’m not sure if/how I can do that. Maybe I’ll have to switch to TCP?

Any thoughts?

Thanks,  
Glen.

---

<div class="post-metadata">

### Author: ![totalgee](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/totalgee/32/274_2.png) [@totalgee](https://discourse.libcinder.org/u/totalgee)
#### Post date: [October 18, 2018, 11:14am UTC](https://discourse.libcinder.org/t/get-osc-message-sender-remote-port-deprecated/1330/2 "2018-10-18T11:14:00Z")

</div>

Regarding this: I’ve opened an [issue on GitHub](https://github.com/cinder/Cinder/issues/2041) and also provided a [Pull Request](https://github.com/cinder/Cinder/pull/2042) that adds the missing functionality to get the sender’s port.
