How to get an IP Address for Gateway API?

Maybe check this post.