Filemaker Data API on remote network doesn't connect

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
trevix
Posts: 428
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Filemaker Data API on remote network doesn't connect

Post by trevix » Sun Feb 10, 2019 3:36 pm

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
Trevix

trevix
Posts: 428
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

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

Post by trevix » Sat Feb 16, 2019 3:05 pm

Any suggestions on what to try?
Trevix

bogs
Posts: 3466
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Sat Feb 16, 2019 3:20 pm

I wish I did have a suggestion for you, I hope someone that knows or can at least guess stops by.
Image

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 310
Joined: Tue Apr 10, 2012 9:18 am

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

Post by ghettocottage » Sat Feb 16, 2019 11:01 pm

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.

trevix
Posts: 428
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

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

Post by trevix » 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.

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

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 310
Joined: Tue Apr 10, 2012 9:18 am

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

Post by ghettocottage » Sun Feb 17, 2019 5:12 pm

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

trevix
Posts: 428
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

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

Post by trevix » Sun Feb 17, 2019 6:47 pm

HOW GOOD YOU ARE!!!
Thanks. That was it and I couldn't find it in a million years.
Trevix

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 310
Joined: Tue Apr 10, 2012 9:18 am

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

Post by ghettocottage » Sun Feb 17, 2019 6:54 pm

Glad it worked!

Post Reply

Return to “Internet”