its not that easy, because i dont know how and why, but our domain server is on azure servers, and there is no static IP address, thats why i was asking
That's a tough one. Must be a wild ride for anyone trying to access your website if they live in a part of the world that gets delayed DNS propagation. Here's a suggestion.
Create a scraping session that is scheduled to run as often as you think is necessary in order to ensure you always have access to screen-scraper's server. Have this scraping session run in a different instance than the instance you are trying to access.
Set up this scraping session to visit http://www.icanhazip.com and extract the IP address in the response. Create a scrapeable file that reads the /resource/conf/screen-scraper.properties file of the target screen-scraper instance and read in the value of IPAddressesToAllow. Look for the value of your current IP address in the IPAddressesToAllow string. If your IP address is not in the string shut down the target instance and modify the properties file to include your IP address. Restart screen-scraper and attempt to connect.
Tip: You can execute shell and dos commands from within screen-scraper. Here's an example.
Instead, just ping your
Instead, just ping your domain to get the IP address.
its not that easy, because i
its not that easy, because i dont know how and why, but our domain server is on azure servers, and there is no static IP address, thats why i was asking
Radek,That's a tough one.
Radek,
That's a tough one. Must be a wild ride for anyone trying to access your website if they live in a part of the world that gets delayed DNS propagation. Here's a suggestion.
Create a scraping session that is scheduled to run as often as you think is necessary in order to ensure you always have access to screen-scraper's server. Have this scraping session run in a different instance than the instance you are trying to access.
Set up this scraping session to visit http://www.icanhazip.com and extract the IP address in the response. Create a scrapeable file that reads the /resource/conf/screen-scraper.properties file of the target screen-scraper instance and read in the value of IPAddressesToAllow. Look for the value of your current IP address in the IPAddressesToAllow string. If your IP address is not in the string shut down the target instance and modify the properties file to include your IP address. Restart screen-scraper and attempt to connect.
Tip: You can execute shell and dos commands from within screen-scraper. Here's an example.
Process stopServer = Runtime.getRuntime().exec(stop_command);
Hope this helps,
Scott