ip

How to determine whether an IP is from the same LAN programatically in .NET C#

I know that if an IP falls outside the Subnet Mask + Local IP rules, it will be only reachable through an Gateway. The problem is that I don't know how to obtain the local IP address, neither the local subnet mask, programatically using .NET. Any of you can help me? I will use this information to squeeze the maximum performance from my ...

Working with IPv6 Addresses in PHP

After searching around somewhat thoroughly, I noticed a slight lack of functions in PHP for handling IPv6. For my own personal satisfaction I created a few functions to help the transition. The IPv6ToLong() function is a temporary solution to that brought up here: How to store IPv6-compatible address in a relational database. It will sp...

How to convert an IPv4 address into a integer in C#?

I was going to attempt to write this function myself but I thought that someone on SO might know the answer :) I'm basically looking for a function that will convert a standard IPv4 address into an Integer. Bonus points available for a function that will do the opposite. Solution should be in C#.net. ...

Getting the client IP address: REMOTE_ADDR, HTTP_X_FORWARDED_FOR, what else could be useful?

I understand it's a standard practice to look at both these variables. Of course they can easily be spoofed. I'm curious how often can you expect these values (especially the HTTP_X_FORWARDED_FOR) to contain genuine information and not just be scrambled or have their values stripped away? Anyone with the experience or statistics on this...

Delphi, How to get all local IPs?

Any one know a way in delphi get a simple list (eg tstrings) of the local ip address. I have had a look at the other related question, and cant seem to get my head around converting them to delphi. ...

Does anyone know a java component to check if IP address is from particular network/netmask?

I need to determine if given IP address is from some special network i must authenticate automatically. ...

How to determine nationality based on IP address?

Title says all. ;) How can I tell the nationality of a user of my web site based on client ip? Edit: Like commented, this question have been answered before: http://stackoverflow.com/questions/283016/know-a-good-ip-address-geolocation-service ...

Is there way to match IP with IP+CIDR straight from SELECT query?

Something like SELECT COUNT(*) AS c FROM BANS WHERE typeid=6 AND (SELECT ipaddr,cidr FROM BANS) MATCH AGAINST 'this_ip'; So you don't first fetch all records from DB and then match them one-by one. If c > 0 then were matched. BANS table: id int auto incr PK typeid TINYINT (1=hostname, 4=ipv4, 6=ipv6) ipaddr BINARY(128) cidr INT ...

Regex on IP numeric value in MySQL?

Assume a table titled 'transactions' Typical query: select * from transactions where ip=INET_ATON('127.0.0.1'); I want the ability to do a regex search for all ip's with a particular first octet (i.e. 127) but I can't quite figure out the syntax. Thanks! ...

IP adresses of B Class: broadcast

Are the following IP adresses - 168.94.254.255 & 168.94.255.254 - used for broadcast, if they belong to B Class? (The adresses were randomly chosen). I suppose 168.94.255.255 would rather be a broadcast adress, but I'm not sure. Thanks in advance! ...

How to determine the IP address of a Solaris system

What command do I want to issue when I want to know the IP address of the Solaris machine I'm logged onto? Thanks in advance for any suggestions. --James ...

My IP seems to be blocked by web hosting server...

Hi All I have a strange problem, i just installed my php web site on a shared hosting, all services were working fine. But after configuring my app i just could visit my web site only once, other attempts gives "The server is taking too long to respond.". But from other IP i can access, but only once, it seems all ip addressess beeing b...

How to get Time Zone through IP Address in PHP

Hi, I want to get time zone through IP Address in PHP. Actually i have an application which will run at the client machine. I have IP address of client machine. But not able to get the time zone for each client machine. Please reply me. Thanks Devesh M ...

What's the easiest to remember publicly pingable IP address?

For frequent network troubleshooting purposes, do you know a publicly pingable host with an easy to remember IP address (such as 1.2.3.4)? ...

Calculate broadcast address from ip and subnet mask

Hi I want to calculate the broadcast address for e.g -IP 192.168.3.1 -Subnet 255.255.255.0 =192.168.3.255 in C. I know the way (doing fancy bitwise OR's between the inversed IP and Subnet), but my problem is I come from the green fields of MacOSX Cocoa programing. I looked into the source of ipcal, but wasn't able to integrate it into...

Basic apache server, mapping 127.0.0.1, to 10.0.0.7:8000

I'm working on this project where the client has a virtual server setup. I installed apache and such and got everything working fine on localhost. But in order for it to show up on the internets, the people that run this virtual server needs me to: "If you try and reach 10.0.0.7:8000 you do not come to the index page but if you do loca...

IP KVMs / remote access to linux x11 session with no window-manager

Hello, can somebody recommend me good affordable IP KVM? Like Adder. Or some articles evaluating such KVMs? My project: Provide remote support to Linux (Fedora) based software that runs on X, but without any window-manager. I know that there is Gnome vino, but it is buggy and it does not meet my needs for other reasons. I would ...

how to write a program to report the local IP address such as 192.168.1.102?

since my Linksys router doesn't assign a fixed local IP to the computers (PC and Mac and Linux), i'd like to write a script so that every minute, the computers will update to each other so that http://localhost/list.html on each machine will contain a list of names of all PC and Mac and a link to their apache server (pointing to http:/...

How to make sure about the ip of the visitor?

I have a blog aggregation website the stories are ordered by the number of visits I think I am facing a spam of visits because some blogs' stories receive a lot of visits in the same second with efferent ip address my website does not allow visits from the same ip; however, my visitors somehow changing their ips. is their any soluti...

Algorithm/steps to find Longest Prefix search in Patricia Trie

Hello, I am implementing Patricia tries for IP prefix lookup, I could get the code working for complete key match, but facing problems with prefix search, when there are keys which are prefixes of other keys, like: 1.2.3.0 1.2.0.0 Can anyone help me with the algorithm for prefix searches in the above case Should I consider these as ...