How can I retrieve actual IP address and short log of IPs from which is user logged into google/facebook account?
More details:
I need to find out user position (in android APP), but many doesn't use GPS to save battery. Getting position from network is not very accurate. So I thought, I could determine position based on IP, because, when you are at home, you connecting to your gmail/youtoube/... from different IP than when you are at work. Then I can just pair positions with IPs.
If the user connects to your server, then you will have their IP address, and you can use a number of different IP geolocation APIs to convert the IP address to a location. Note that IP-based geolocation isn't particularly accurate (it's approximately accurate to the city, but not to anything more fine-grained than that).
You aren't going to get logs from Google, though.
Related
I have a simple question.
If I send emails using my university account, from my laptopt, but through my personal home network, is it in any way possible to know where I am sending it from? For example, is it possible to get my IP for that, and my location, even if approximate?
Thanks
Well, from some Google searches, it appears its not too difficult to get your IP from an email, https://www.makeuseof.com/tag/how-to-trace-your-emails-back-to-the-source/#:~:text=To%20trace%20the%20IP%20address,then%20head%20to%20MX%20Toolbox.
Then from another search, it does appear to be possible to get an approximate location from IP, https://www.whatismyip.com/ip-address-lookup/#:~:text=An%20IP%20address%20lookup%20will,any%20IPv4%20or%20IPv6%20address.
And to make it even easier, it appears this website will turn an IP into actual info https://www.iplocation.net/
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.
I've deployed an app to bluemix and currently have a domain like:
https://myapp.mybluemix.net
I have a custom domain purchased, but can't find what IP address to point the A records to. I've pinged https://myapp.mybluemix.net and used that IP address but my domain registrar is telling me the IP that's returned is invalid (158.85.156.19)
I've read docs that say that the IP I need for my app pool are available in my bluemix dashboard, but can't find it anywhere.
You do not want to set an A record directly to your app's IP address. Instead, you want to hit the Bluemix router of the region you are in. The routers have hostnames, so the best way to do this is to use CNAMES instead of A records. The list of hostnames for each region are as follows:
US South: secure.us-south.bluemix.net
London: secure.eu-gb.bluemix.net
Sydney: secure.au-syd.bluemix.net
I've read all other question regarding this issue, but could not find a solution. I modified the IP whitelist in the facebook app settings to include the server by which the API is being called, but after I do so, I get an even more worrying "This IP can't make requests for that application." when trying to use the Facebook API from my web app.
The odd thing is that it was working till yesterday, when last user signed up and logged in via Facebook into the app.
Today, all of a sudden, my web application is not authorized anymore?
?
The reputation problem with shared IPV4 addresses is going to get far worse when the carriers are forced to use CGNAT for IPV4 addresses when the IPV4 address pool runs out. The IPV4 address pool in North America is expected to run out in Q1 2015. It has already run out in South America, Europe, and Asia. Currently IPV4 addresses are shared through time (the IPV4 address the belonged to me yesterday belongs to you today, and may belong to that person over there next week.). With CGNAT, the IPV4 address that I am using at the moment may be the same IPV4 address that you are using right now as well. This means that if one of us violates TOS, all of us may be restricted.
IPV6 should not have this problem. They are so sparsely allocated that the /64 you are using now should be yours for a long time, and even if it does change, you are unlikely to get one that anyone else is using, or has used in the last several years.
What I received from Facebook Platform Team
The IP address from which you're trying to use the Facebook API from
is blacklisted, because someone else using the same IP address has
recently violated the Facebook API Terms of Service. Your only option
is to obtain a different IP address to use with the Graph API.
was not very helpful, but I was making a silly mistake myself: the server was communicating with the Facebook API using its IPv6 address, and I was aware of this, but instead of using the proper IPv6 address for the server, I was converting the server IPv4 address to an IPv6 address and using that value, because that's how I thought that IPv6's are getting assigned.... (out of plain ignorance or genius ;) )
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.