My application talks to my server and currently server's ip is embedded in the client application.
For any reason, I might have to change the server's location(and it's ip).
With current setup, I'll have to ship a new version with new server ip embedded.
I guess I could get a domain name and embed the domain name in the app, so that I can dynamically change the server machine(with domain name fixed).
Is there other options I could take?
Thank you
You should definitely use DNS. Get a domain name, they are very inexpensive.
If for some reason you absolutely refused, you could devise a way to send a push notification to the phone for IP changes, but if a user has notifications off then you are out of luck.
Related
I have recently developed a website for a client and don't have much experience working with emails. I have set up and configured an info#ourdomain.com email address and can access it through our web hosting service.
However I want to be able to get my client to log into the email so they can begin working with it, ideally with Windows mail.
This is the information I have been given by the host (I changed all the information for security).
Information Provided
Would be great if I could get a step by step on what options to choose, account type, and where to put the certain port numbers etc.
Thanks in advance
I've been building a fairly simple website-based Facebook app on a 192.168 local IP address. I'm now moving my server onto a larger local network on a 172.30 IP address, but I can't change the website address in my app settings - I get the error message "This can't be a Facebook URL" and it refuses to save the new setting. Everything functions just fine on the 192.168 address for development, but this address is not accessible by the end users so it's not an option to stay on this address.
What are my options for getting some sort of address Facebook will accept?
I wonder whether appending a port number may get around Facebook's URL checking. A local DNS entry may also be an option but is more hassle than it's worth if there are other options.
Facebook URL is not worked in local environment.
My organization has own email id and can be accessed through web-browser. Now I want to setup IMAP in Gmail app in android. This requires specific incoming/outgoing server ip, port, security certificate. However, to my surprise "Mail.ru" app automatically recognizes everything (I just need to provide my email id and pass) and works perfectly (both in the organization network or outside world). These informations are also required to setup email in thunderbird. Is there any way to know this, like tracing packet, or any other way?
N.B: Nadmin don't want to share these info. This page does not help much.
Many email clients support some kind of Autodiscovery, where based on the domain name certain well-known URLs are tried in an attempt to download an XML document containing information about the SMTP and IMAP settings applicable for that domain.
Here is some Microsoft documentation about it:
https://technet.microsoft.com/en-us/library/cc511507.aspx
See also:
https://serverfault.com/questions/172326/how-to-configure-email-autoconfiguration-for-a-domain
I have a website with language ES-ES and I am launching its version in a new country ES-MEX.
I want to redirect all visitors to main website to the site for their country, choosing the best option to avoid overloads (I understand that running even one more script would increase the page download for all my local visitors, so I´d prefer to avoid that)
Would you use htaccess or php?
And what kind of code?
Thanks in advance
You need to set up the dns server that will serve the requests for your domain and provide different server addresses for DNS name requests originated from networks located in Mexico. The BIND DNS server feature that allows you to accomplish this is called view
Thus, you define a view that matches the clients in Mexico and then this view reports different address(es) for names in your domain while for the rest of the World you still report the original ones.
You need to analyse your server logs and find with whois service the locations of the networks you are getting the connections from.
The second option is to use the content negotiation module of the Apache httpd server in a way that the version negotiated for es_MX language of all pages at your original web server would return redirects to the other server.
Both methods are not 100% reliable so clients from Mexico may get connected to your original server and I think that you should use both solutions simultaneously
My Facebook application needs the IP Address of another user to communicate with that other user. So two users are using my application and one user wants to communicate with the other user. How does user A get the IP address of user B, or alternatively how does user B send its IP address to user A?
If this is not possible without passing the data manually is there a DB table that the IP address can be written to. My Facebook application has the ability to get its own local IP address. I just need a way to get the remote IP address using API's.
Facebook don't have support for any custom data storage, you will need to handle this on your own in your applications server code.
Basically you will need to have a database (or similar storage) where you store facebook user id and IP-address.
Another note is that you can't get another Facebook users IP-address from Facebook, you need to get it from your connection to the user.
Have both users connect to a server of your choice, register the IPs there.
Facebook does not supply users' IP addresses, so you'll need to handle this on your own. You should be able to retrieve this from the HTTP request headers your users submit. Check the source IP and store it in a database, then use that to send to the other user.