ip-address

How can you get the calling ip address on an ejb call?

If a java client calls a remote EJB on a different server, how can you get the client IP address? Note that it is important to get it from the server, because the client is likely behind a NAT firewall, and in this case we need the public IP address. NOTE: Although it would preferably be a generic solution, at a minimum I could use one ...

Getting the ip-address

In C#: IPHostEntry IPHost = Dns.GetHostEntry(Dns.GetHostName()); for (int i = 0; i < IPHost.AddressList.Length; i++) { textBox1.AppendText("My IP address is: " + IPHost.AddressList[i].ToString() + "\r\n"); } In this code, the IPHostEntry variable contains all the IP addresses of the computer. Now, as far as I know, Windo...

In C#, how do I resolve the IP address of a host?

How can you dynamically get the IP address of the server (PC which you want to connect to)? ...

What is be the most appropriate data type for storing an IP address in SQL server?

What should be the most recommended datatype for storing an IPv4 address in SQL server? Or maybe someone has already created a user SQL data-type (.Net assembly) for it? I don't need sorting. ...

Sending Messages to Selected Ips

I have an array of ip address which contains a set of ip address, which is to be communicated from server. Example: There are 5 clients. 4's Ip address out of this 5 will be stored in an ip address array. The remaining one will be blocked at the time of sending messages from server. How it will be done. My sending message Code is shown ...

Indexed ranged search algorithm for IP Addresses

Given an ACL list with 10 billion IPv4 ranges in CIDR notiation or between two IPs: x.x.x.x/y x.x.x.x - y.y.y.y What is an effecient search/indexing algorithm for testing that a given IP address meets the critera of one or more ACL ranges? Lets assume most ACL range definitions span a great number of class C blocks. Indexing points ...

Find Out Connected clients IP's?

How to find out Connected Clients Ip Address. And how we can store that address to an array of datatype IPAddress? ...

Can I whitelist IP's using IIS running a PHP site??

As outlined by this guys post, blocking IP's via PHP is pretty easy. However, how can I do this, site wide, using IIS? Here are my (big) caveats: I do not have access to change the php.ini. So I can't use auto_prepend feature. I am on Windows with IIS so I can't use .htaccess. I don't have any PHP "footer" which gets called on all o...

JavaScript: How to get users IP ADDRESS ?

Is it possible using only JavaScript to obtain the user's IP Address? If so, how? ...

Ip address retrieving..

There is an error showing at this line on execution: ((IPEndPoint)(TcpClient.Client.RemoteEndPoint)).Address; the eroor is: An object reference is required for the nonstatic field, method, or property System.Net.Sockets.TcpClient.Client.get ... What is solution for this error? The code is shown below. //Assume myList is an...

how to get my own IP address in C#?

I am running a server, and I want to display my own IP address. what is the syntax for getting the computer's own (if possible, external) IP address? The guy before wrote this code IPHostEntry host; string localIP = "?"; host = Dns.GetHostEntry(Dns.GetHostName()); foreach (IPAddress ip in host.AddressList) { if (ip.AddressFamily.ToS...

What is a "Live IP Address"?

What is a "Live IP Address"? For example, what does it mean when someone says "I transferred my project from place A to B through a Live IP"? ...

Limit access of asmx web service to specific IP addresses

I need to limit access of an .asmx web service to specific IP addresses. I figure I could add a hardcoded check into each method, but that seems like a code maintenance nightmare. Is there a web configuration entry I can make, or a IIS 6 setting I can apply to the .asmx file? ...

Tool or PHP code to convert IP address into lat/lng coordinates

I have thousands of IP addresses of visitors to my site, what tools can I use to convert these into lat/lng coordinates? I will then be able visualise the data on a map with filters for further demographics gathered. ...

Deriving the Inverse of a subnet definition

An IP Subnet is defined with two parts, a network and a prefix-length or mask. For example 192.168.0.0/16 (or, 192.168.0.0/255.255.0.0). An IP address like 192.168.1.1 is said to match this subnet because, (192.168.1.1 & 255.255.0.0) == 192.168.0.0 I am interested in what might be called the inverse of a subnet which is described...

IP Address Lookup in a Firefox Extension

I'm writing a Firefox extension and I need to find the ip address of the currently loaded page. I can get the hostname of the page with window.location.host, but is there any way to find the ip for that hostname? I tried looking for the answer at the Mozilla Developer Center but was unable to find anything. EDIT: I would use something...

Limit execution of a php-page to requests made from a certain ip-range

I have a PHP page I need to limit execution access of to only clients inside our firewall. How would I write a php-script that can look up the clients ip-address and match it to a ip-range (for instance 10...* or 200.10.10.*). ...

How do I grep server access logs for unique IPs and a specific page?

I want to grep my server logs to collect all of the unique IP Addresses, and also to see all of the requests for a specific page. What is the best way to do this? ...

Objective-C - Determining IP address of iPod touch programmatically

I'm programming in objective-C for several iPod devices and I was wondering about something. I'm developing an application that utilizes the server-client model and I'm using the UDP protocol with C sockets. Is there a class out there that allows me to determine the iPod devices IP address? After googling around other forums, I haven't f...

How can I convert the decimal representation of an IP address into binary?

Does anyone knows how to convert decimal notation of an IP address into binary form in Java? Please let me know... ...