How to get system ip address from angular without using API call

7,693 views
Skip to first unread message

ganesh veda

unread,
Jul 12, 2020, 8:11:45 AM7/12/20
to Angular and AngularJS discussion
I have a business case where i have to get system ip address from angular. This angular application is packed inside a docker container and running in Azure kubernetes platform.
We are not supposed to make public open API call from Azure Kubernetes in a corporate environment. I am looking for solution to read system ip address from angular without calling any public API.

Please assist.

Thanks
Ganesh V


ganesh veda

unread,
Jul 13, 2020, 10:17:56 PM7/13/20
to Angular and AngularJS discussion
Can someone please assist.

Sandip Nandi

unread,
Jul 14, 2020, 9:17:17 AM7/14/20
to ang...@googlegroups.com
Hi
  Angular app when running uses client systems context, do u want to read ip of client machine where angular code runs?

Regards

Sandip

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/2ececc5f-ff19-4520-a22c-054c679166eao%40googlegroups.com.

ganesh veda

unread,
Jul 14, 2020, 12:08:26 PM7/14/20
to Angular and AngularJS discussion
Yes. Get Client Ip address but without public api call.

Sandip Nandi

unread,
Jul 14, 2020, 11:02:19 PM7/14/20
to ang...@googlegroups.com
You can use the below link

However most browsers will fix the web rtc stuff, so lastly you might have to depend on api call.

/Sandip

On Tue, Jul 14, 2020, 21:38 ganesh veda <ganes...@gmail.com> wrote:
Yes. Get Client Ip address but without public api call.

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.

ganesh veda

unread,
Jul 18, 2020, 5:43:38 AM7/18/20
to Angular and AngularJS discussion
Thanks for the solution. I have two questions. Code did not work. 2nd , will this solution work or make api inside a network without internet?
Reply all
Reply to author
Forward
0 new messages