Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Get IP Address of client login
Wed, Jul 22 2015 11:07 AMPermanent Link

Pasquale

Web Pos srl

Hi I made this application

http://www.mbspay.it/payplatform.html

Now I have to monitor ip attempting to access the application .

How can I get IP address?
Wed, Jul 22 2015 11:47 AMPermanent Link

Matthew Jones

Pasquale wrote:

> Hi I made this application

What is the server you are using?

--

Matthew Jones
Wed, Jul 22 2015 12:05 PMPermanent Link

Pasquale

Web Pos srl

Use server windows .

You need to know IP ADDRESS wants to enter the address to check if it is enabled (I HAVE THE DB WITH LIST OF IP ADDRESS ENABLED)
Wed, Jul 22 2015 2:33 PMPermanent Link

Raul

Team Elevate Team Elevate

On 7/22/2015 11:07 AM, Pasquale wrote:
> Hi I made this application
> http://www.mbspay.it/payplatform.html
> Now I have to monitor ip attempting to access the application .
> How can I get IP address?

You need to restrict the IP on your web server code (not in EWB
application).

Not sure what web server API is like but login is usually the best place
to do it - check source IP and then username/password and if all are
valid then allow login.

Note that most of the time people are behind NAT or proxy so getting an
actual client IP might be not always possible.

EWB application is javascript so it's downloaded and then run in the
browser on the client side so it does not really have an IP itself.

If you the EWB app to get the client IP then you usually need to make
another web request to obtain it - either from your server (you need to
have an API for that) or using some of the public services (for example
http://stackoverflow.com/questions/391979/get-client-ip-using-just-javascript
)

However do note that this runs in client browser so it's absolutely
trivial to fake if one wants to.

Raul
Image