0

I am starting with Wildfly Swarm and I built this API to be used from an app developed with Ionic 2, the API works fine when testing it on my own PC and also with Postman.

When I try to run the app on an actual device, it just won't get any response at all. I also tested Postman from another PC on the same network, doesn't work either.

I know I am not giving much of details, this is because I don't know what pieces of code I should add here, so If you need any detail, just let me know.

Marcos J.C Kichel
  • 6,887
  • 8
  • 38
  • 78
  • 1
    Didn't you test the app on the browser using `Ionic server`? – Sampath Apr 24 '17 at 14:13
  • Yea, I did, it works this way, but with `ionic run android` it doesnt – Marcos J.C Kichel Apr 24 '17 at 14:28
  • You can do remote debugging then? https://developers.google.com/web/tools/chrome-devtools/remote-debugging/ – Sampath Apr 24 '17 at 14:40
  • Wildfly Swarm will listen on port 8080 by default. Are you sure that port 8080 is not being blocked by your computer/firewall? – stdunbar Apr 24 '17 at 16:00
  • @stdunbar how can I test that theory? – Marcos J.C Kichel Apr 24 '17 at 16:56
  • First, on the machine that is running the Wildfly service, make sure that Wildfly is listening on all interfaces - Unix/Mac OS/X - run `netstat -na | grep LIST`, Windows just `netstat -na`. Look for a line that looks something like `tcp46 0 0 *.8080 *.* LISTEN`. The key is the `*.8080`. If it says something like `127.0.0.1:8080` then it will only be accessible from localhost. Let's start there. – stdunbar Apr 24 '17 at 17:31
  • WF Swarm should bind to all interfaces on whatever port you've defined, or 8080 by default. I suspect as @stdunbar stated, the most likely problem is port 8080 is not accessible outside the machine it's running on – Ken Apr 24 '17 at 18:00
  • Swarm will normally try to bind to IPv6 localhost [::]:8080. You can force it to bind to a certain interface on startup with property swarm.bind.address – Lasrik May 15 '17 at 13:30

0 Answers0