Whitelist Mobile data IP address on EC2 instance - amazon-web-services

I have whitelisted my mobile data IP address in the Load Balancer Security Group and I can access my application. But my mobile data IP address keeps changing when I am travelling. And I can not keep whitelisting my new IP addresses every time to access the mobile application running backend server on EC2.
So, how this situation can be tackled ?

One suggestion to can tackle this - The service that your mobile app is using open it for public IP (instead of restricting it mobile device app) and have some kind of authentication in your service using which only your mobile app can access.
For example - Send some userid/pwd in our service call which only your mobile device knows, validate the userid and password at server-side and hence no one else can access the service.

Related

App running in AWS EC2 has been seen under different client IP while connecting to different servers. Why?

I have 2 servers running in my own hosting: auth-server and application server. Auth server issues an auth-token for application server. Application server checks issued token and client ip (it must match ip that was used to get the token). In majority of cases it works OK but not when client is in AWS EC2. For some reason client IP (how client is seen for my servers) changes when client is located in AWS EC2 instance. Is it normal situation that AWS can use different network interfaces to connect to different servers?

Access a self-hosted WCF service from the internet and LAN

I have a self-hosted wcf service on a pc in the office. The service address is the IPv4 of the PC + port + / service / ERP.
So that the client application can access from the LAN, it uses the address of the server as I mentioned, and to access from outside the LAN, I use the public IPv4 or a url of some DNS provider and in the Reuter I redirect the port to the PC where the service is hosted. So far everything works perfectly, the problem I have is that the notebooks must access from inside the LAN and sometimes from outside, but if I use public IPv4 from within the network I cannot access the service.
My current solution is to have two configurations or two icons, one for internal access and another for external access where the user selects depending on their location, but I would like to have access and somehow be able to detect if it is on the LAN or on the outside, or if you know of any way to allow access from a LAN using a public IPv4

AWS restrict access to Limited Devices

I have hosted a web application (node.js + angular.js) on AWS ECS service. My requirement is to restrict access to this application to only certain devices and not all device in my organisation.
I am not sure if we can restrict the devices using devices private IP address of individual machine considering they are dynamic in nature.
I cannot use client certification based on this aws article.
Can somebody suggeset any other way or can redirect me in right direction.

How do I get my server Ip address for my websocket

I've created a server using c++ and crow that uses webSockets to communicate with the client (which is an ionic app). I've been do everything through localhost but now I want to deploy the webapp to my iphone and have it communicate with the server. How do I get the URL for the server for the client to use in it's websocket so it can talk to the server?
In most cases when you want to host it for production you would upload it to a hosting provider (e.g. Azure, AWS, Heroku...).
Once you set up a server with the hosting provider they will provide you with the IP address and/or a URL to connect to the hosted service which you can use in your application.
Well, if your server is like webhost,VPS,CLOUD,or dedicated server, it has static ip address which you can use in your client websocket as the address. Also, the better approach is to point a domain name to the ip address of the server (or host) so that your client can always find the server.
In case you are trying to connect it to your local machine behind a router or modem, then your server might be behind NAT. Find appropriate port-forwarding configuration for your router and forward incoming and outgoing TCP public ports to your local address. then use your public ip address for websocket address (what is my ip).
Also, in case your public ip address is dynamic and might change over time, there are services like noip.com that help you create a free domain and use it in your client which helps you find the right ip address all the time.

How to access a web service hosted on my AWS work space from internet?

Basically my problem is I want to do following things :
Develop a web service on work space
Now give demo of that web service usage from my AWS works space by a public IP like
http://172.23.0.1:8090
I want an IP for my workplace by which I can access web app or web service hosted locally on that machine to be accessed from any where from internet.
Is that possible if not then tell me alternative ?
Below are the steps that you should follow:
Select Assign Public IP while creating the new instance
In the assigned Security Group settings, open the port 8090 for 0.0.0.0 (means accessible for all) along with the protocol you will be using (TCP, UDP, etc)