How can you implement ip address security in vb project.

I am into a project which should check users ip address and then allow access only if the ip address is present in the dump(authentic ip addresses).

Please do help me with the code.