This is a migrated thread and some comments may be shown as answers.

Run on Device in Graphite

1 Answer 34 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
iggy
Top achievements
Rank 1
iggy asked on 06 Jun 2013, 03:56 PM
I have an app that connects to a service that's on localhost (I've tried http://127.0.0.1/myservice too)

When I "Run on Device" with a device connected the app fails to connect to the service. I am behind the corporate firewall. I've tried IPv4 address, localhost and 127.0.0.1 without luck.

Could this be related to the corporate network configuration? If so, what changes need to be made?

1 Answer, 1 is accepted

Sort by
0
Jan-Dirk
Top achievements
Rank 1
answered on 07 Jun 2013, 10:00 AM
You are probably running into a so called NAT loopback issue. I have a similar problem when I want to access webservices that run on a PC at home when I am connected with my wifi at home.

[quote]Many DSL routers/modems prevent loopback connections as a security feature. This means that a machine on your local network (e.g. behind your DSL router/modem) cannot connect to a forward facing IP address (such as 199.149.252.44) of a machine that it also on your local network. Connecting to the local IP address (such as 192.168.2.40) of that same machine works fine.[/quote]

Is this on Android or iPhone/iPad? What I did was putting a proxy on one of my Windows machines. You can modify the hosts file on the machine so that a request to webservice.mydomain.com is forward to the ip of the PC running the web services.
Tags
AppBuilder Windows client
Asked by
iggy
Top achievements
Rank 1
Answers by
Jan-Dirk
Top achievements
Rank 1
Share this question
or