Gemalto is now part of the Thales Group, find out more.

You are here

Grant Connections only from a website | Thales IoT Developer Community

January 2, 2017 - 4:22pm, 1230 views

Hello. 

I have an app in which I receive http requests built on my BGS5T. Currently, I'm managing the host to connect into the webserver by IP. My website has a static IP which I can use to connect or not into my app. However, this is not the best behaviour. In long term, my website might change its provider, changing its IP, what would make me change the configuration. What I ask is this: is there anyway to allow or block connections via website name? Something like
String website = "www.dummy.com"

if socket.websitename == www.dummy.com

{

do stuff

} else socket.close();

Thanks in advance