Can I reproduce geographical distance by connecting VPN server? - server

Let's say a gaming server is only hosted in Japan.
UserA lives in Japan. To reach a gaming server(Japan), it takes 10ms.
UserB lives in Brazil. To reach a gaming server(Japan), it takes 50ms.
(Distance from Japan to Brazil 17,360 km)
If userA uses a VPN that is hosted in Brazil and accesses a gaming server(Japan), am I technically accessing from Brazil, and ping time would be similar to 50ms?

That would add more bottleneck.
A network request using a VPN looks like this:
Request -> VPN server routes the request -> Server -> VPN -> sends it back -> Response
That's why VPN's are not something for speed.

Related

Send message only to a specific user in a specific group connected to 2 different hubs in SignalR

If i have the following scenario for a connected user
`clientwebsiteA -> hubA -> groupA -> id:george#email.com`
and
`cliebtwebsiteB -> hubA -> groupB -> id:george#email.com`
A user george is connected logged in to 2 different websites clients(at the same time), each of which connects to a signalr hubA (note: hub a is a single webapp , hosting multiple hubs).
If I wanted to only send a message to hubA.groupA.id:#george.email.com.
is this possible?
or if i send a message to
`clients.User("george#email.com")`
will he get the message on both of his connections?
I was hoping to see a method like
clients.Group("A").User("george#email.com").SayHello()
or clients.UserInGroup("A",id:george#email.com").SayHello()
if this isn't possible can it be achieved if I use 2 different hubs( with 2 different routes)
M$ says that multiple hubs share the same connection to the signalr sever.
https://learn.microsoft.com/en-us/aspnet/signalr/overview/guide-to-the-api/hubs-api-guide-server#multiplehubs
If I wanted to only send a message to hubA.groupA.id:#george.email.com.
is this possible?
If user george connect to same hub server (hubA) from two different client apps (clientwebsiteA and clientwebsiteB), user george would establish two connections (with two different ConnectionIds) to hub server. Under this scenario, to send message(s) to that specific client user george (from clientwebsiteA), you can mapping user to connections (implement user-site-connectionId mapping) on hub server, so that you can get connectionId based on user and site, then send message to specific user with connectionId, like below.
await Clients.Client(connectionId_here).SendAsync("SayHello");
Or you can implement and use single-user group.
//join group while george connect from site A
await Groups.AddToGroupAsync(connectionId_here, "SiteAGroupAGeorge");
then you can send a message to that group when you want to reach only that user.
await Clients.Group("SiteAGroupAGeorge").SendAsync("SayHello");

Bitrix : About install im.bitrix.info to own server

I bought bitrix self host version then I installed it to my server.
But when checking I see all message interact with Bot Framwork all through to bitrix server: im.bitrix.info, can I setup a application as im.bitrix.info by my self at my own server for controlling.
I need it because many cases I can debug what problem with skype bot or bitrix problem.
Unfortunately, no.
Some organizations may restrict Internet access due to security reasons. In this case Firewall controls the incoming and outgoing network traffic based on predetermined security rules. In order to to be able to work with your Bitrix24 account, please make sure you have the following addresses allowed in your Firewall: *.bitrix24.com, *.bitrix24.net (Bitrix24.Network, authorization)
International domains:
*.bitrix24.de (Germany)
*.bitrix24.es (Spanish speaking countries)
*.bitrix24.com.br (Portuguese speaking countries)
*.bitrix24.cn (China)
*.bitrix24.in (India)
*.bitrix24.eu (Europe)
*.bitrix24.fr (France)
For all of the above mentioned addresses we recommend to allow subnet mask *.bitrix24.*.
Please note that the following addresses should be allowed as well in order to provide simaltaneous work of such services as telephony, bots, open channels, videos: *.bitrix.info, bitrix*.cdnvideo.ru, *.cloudfront.net
https://helpdesk.bitrix24.com/open/6355275/
Bitrix telephony, bots, open channels and videos work through the cloud server.

How does one get around the firebase hosting proof of ownership catch 22?

Firebase hosting requires that a TXT setting be set up to as they call it
Prove the domain is yours
I purchased a domain. It is mine. In order to set this TXT setting I have to have the domain hosted. The place I purchased the domain from sells hosting for minimum one year at a time. What is the point of firebase hosting when I have to buy hosting somewhere in order to prove that the domain is mine? Is there any way to get around this catch 22?
Proving ownership is done by putting a TXT record in the DNS. This doesn't require that you have a website hosted yet, it merely requires access to the DNS settings for your domain.
It's hard to help beyond that without knowing where you registered your domain.
Update. I took Frank's advice and set up a few Namecheap accounts. Wowie! The discount names are as cheap as 50 cents/year if you buy 1 or 5 years. Thanx for the advice. There is a caveat to using Namecheap/firebase, however.
Do not take this as if I were looking a gift horse in the mouth. I am super grateful to Google for free hosting. I merely want to warn users that firebase is not a free country. Google forces the s religion. I put in many hours of work to create my website using my girlfriend's hosting MySQL. Her hosting platform does not have an s in the URL: https. So the Angular 5 HTTP calls barf. I also included a contact page and a share via email popup. I used my girlfriend's hosting and set up a poor man's PHP web service for that. That does not work because girlfriend's hosting uses HTTP not https. So now I have to go back and recode these backend connections to use Google firebase and Google functions/SendGrid. I could have done that from the get-go and saved myself the time and aggravation.

How facebook detects my location so precisely only based on IP address?

I have two-step authentication on facebook. I just tried to log in from my home PC but didn't write second step code.
I've got notification that somebody (me) was trying to login to my account and location was so precise (within 2 meters).
I wondered how facebook detects location so precisely only based on IP?
Today geolocation is in the core business of Marketing companies, there's a very developped market of customer data, so tons of mobile apps and services collect data such as usual IP addresses, personal information, interests, locations.
That information gets reselled to data brokers, aggregated, corrected. And then Facebook or others can buy that data, merge it, implement corrections and so and get tables for matching IPs and locations that are not public, it seems.
However they offer a high level API to perform market targeting which seems to use that data:
https://developers.facebook.com/docs/marketing-api/buying-api/targeting#location
In your case it was precise because they may have a good dataset based on your privacy settings experience, not only with facebook but with other geo-located apps. In my case their guess is wrong by hundreds of Km, because I was behind a corporate proxy.

Give access to the AppStore in a WiFi HotSpot

One of our hotel clients provide free WiFi to its guests with a Hot Spot, however, there are available only a few URL to access them freely (such as Facebook or the website of the hotel) and if you need more access you should log in.
We have developed the App for the hotel and one of its features is that if you open the App it gives you a complete access to the hotel WiFi, so you can navigate to any page you want.
Therefore, it is necessary that the guests can download the app through the AppStore without being logged in to the hotel WiFi, so the guest can download the App and get the access immediately.
We have a trace of the URL that calls the AppStore for search and downloading the App and we have set the Hot Spot to allow access to this URL, however, the AppStore tells us that we have no connection.
What URL should we need to enable in our Hot Spot for the AppStore to work properly?
These are the routes that have enabled:
search.itunes.apple.com
play.itunes.apple.com
init.itunes.apple.com
su.itunes.apple.com
itunes.apple.com
se.itunes.apple.com
p59-buy.itunes.apple.com
pd-st.itunes.apple.com
xp.apple.com
sp.itunes.apple.com
Thank you for your help.
Apple Appstore communicate using HTTPS. So router in the middle will not know what url that been use by client due to it's encrypted.
The solution is, instead of allow those by url. you need to allow it by ip address.
I would suggest to allow connection to the following address.
17.154.0.0/16 Apple's Class B Subnet includes phobos.apple.com address(es)
23.63.98.0/23 Akamai Technologies CDN
Please keep in mind that xxx.xxx.xxx.xxx/16 mean 255.255.0.0.
And it will be equal to allow ip adresss from 17.154.0.0 - 17.154.255.255
Also Akamai is a Content delivery service So ip address will various from location. I would suggest you to try to ping swcdn.apple.com get ipaddress and allow those /23 server.