Page 1 of 1

Filemaker Data API on remote network doesn't connect

Posted: Sun Feb 10, 2019 3:36 pm
by trevix
OSX 10.12.6, LC 9.0.2

While everything works to get the API tokens from my FMS database, hosted on a different PC on my LocalNetwork, using this url:

Code: Select all

https://192.168.1.160/fmi/data/v1/databases/MyDBname/sessions
if I try to do the same on my external IP address, I got not result, no return, nothing written in the FMS log:

Code: Select all

https://MyExternalIPAddress/fmi/data/v1/databases/MyDBname/sessions
BUT, using Postman, everything is fine!
The httpHeaders is the same:

Code: Select all

"Content-Type: application/json" & cr &
"Authorization: Basic " & tEncodedUser 
All firewalls off doesn't change the situation.

Any idea?

Thanks
Trevix

Re: Filemaker Data API on remote network doesn't connect

Posted: Sat Feb 16, 2019 3:05 pm
by trevix
Any suggestions on what to try?

Re: Filemaker Data API on remote network doesn't connect

Posted: Sat Feb 16, 2019 3:20 pm
by bogs
I wish I did have a suggestion for you, I hope someone that knows or can at least guess stops by.

Re: Filemaker Data API on remote network doesn't connect

Posted: Sat Feb 16, 2019 11:01 pm
by ghettocottage
If you have the Filemaker Server on your home network, you would need to be sure and forward ports to that server from your router.
Since you are using https, you would need port 443 forwarded to 192.168.1.160
Also, if you have not already, be sure to give your FM Server a static local ip so that wont change in the future.


A nicer, more secure solution is to have a VPN Server that your FM Server connects to, and then you can just connect to your VPN Server from wherever and have direct access using the same local IP address (as if you were on the same local network). That way you are not exposing your FM Server to the whole world...but VPN Server setup is a whole nother topic. Just mentioning it here as something to consider.

Re: Filemaker Data API on remote network doesn't connect

Posted: Sun Feb 17, 2019 10:28 am
by trevix
Port 443 is already forwarded and I have a static IP:
since doing the same operation with Postman return the correct result, this is some problem of LiveCode, I think.

What is strange is not getting ANY result, not even an error msg.
What else can I check?

Re: Filemaker Data API on remote network doesn't connect

Posted: Sun Feb 17, 2019 5:12 pm
by ghettocottage
trevix wrote:
Sun Feb 17, 2019 10:28 am
Port 443 is already forwarded and I have a static IP:
since doing the same operation with Postman return the correct result, this is some problem of LiveCode, I think.
Ok. It is hard to know what someone has tried when it comes to networking issues, so I usually start with the basics when troubleshooting
trevix wrote:
Sun Feb 17, 2019 10:28 am
What else can I check?
I have a vague recollection of having some issue with using ssl on one project (not a filemaker project, but similar remote access)

Try adding this:
libUrlSetSSLVerification false

Re: Filemaker Data API on remote network doesn't connect

Posted: Sun Feb 17, 2019 6:47 pm
by trevix
HOW GOOD YOU ARE!!!
Thanks. That was it and I couldn't find it in a million years.

Re: Filemaker Data API on remote network doesn't connect

Posted: Sun Feb 17, 2019 6:54 pm
by ghettocottage
Glad it worked!