# Invalid input for update\_ip\_address

**URL:** https://meta.discourse.org/t/invalid-input-for-update-ip-address/77085
**Category:** Self-hosting
**Created:** [January 2, 2018, 6:11am UTC](https://meta.discourse.org/t/invalid-input-for-update-ip-address/77085 "2018-01-02T06:11:15Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![klopsknoedel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/klopsknoedel/32/194126_2.png) [@klopsknoedel](https://meta.discourse.org/u/klopsknoedel)
#### Post date: [September 18, 2019, 8:45am UTC](https://meta.discourse.org/t/invalid-input-for-update-ip-address/77085/18 "2019-09-18T08:45:12Z")

</div>

A short follow up.  
The “fix” I’ve provided above causes some issue like the one [described here](https://meta.discourse.org/t/link-to-own-domain-results-in-internal-server-error/125332).

For now we work around this by wrapping this “split” - part into a `begin…rescue…end` like this:

```ruby
begin
  ip_port_split = request.ip.split(':')
  ip_only = ip_port_split.first
rescue
  ip_only = request.ip
end

```

Kind Regards  
Sascha

---

_[View the full topic](https://meta.discourse.org/t/invalid-input-for-update-ip-address/77085)._
