To get a data feed from Transport for London (TfL) the registration form has a mandatory field that wants the IP address of the server requesting the data. But for an iPhone app that uses NSURLConnection, it is the phone that does the downloading so there is no server involved.
I emailed TfL but have had no reply. Local IP addresses are rejected:
(127.0.0.1, 192.168., 10. or in the range 172.16.* – 172.31.*)
cannot be accepted
Has anyone got round this and how?
Your app is not supposed to connect directly to the server, instead you should use your own server which acts as a proxy to TfL’s server.
From TfL’s Developer Guidelines: