ip-address

How to convert standard IP address format string to hex and long?

Hi, Does anyone know how to get the IP address in decimal or hex from standard IP address format string ("xxx.xxx.xxx.xxx")? I've tried to use the inet_addr() function but didn't get the right result. I tested it on "84.52.184.224" the function returned 3770168404 which is not correct (the correct result is 1412741344). Thanks! ...

How to enumerate IP addresses of all enabled NIC cards from Java?

Short of parting the results of executing ipconfig, does anyone have a 100% pure java way of doing this? ...

Windows - VBScript - Determine IP address of computer on network

I have written some VBScripts to automate tasks that I perform on computers over the network. These work great for most tasks however within our network we have problems with the IP address in DNS being correct all the time. This mainly occurs with laptops where we have different IP ranges for machines on the wireless and wired network...

How to make sure a user can only vote once on an ASP.NET poll.

I'm trying to make a ASP.NET (C#) poll that will ask a user a Yes/No question and log that vote to the database. To prevent spam I would like to be able to make sure users can only vote once. I've thought about logging the users IP address. If this is the answer can someone give me a tutorial that shows how this can be accomplished. If t...

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...

Compare the different representations of the same URI

We have the follwing situation: The clients are sending events / messages to the server over a webservice. The server can identify the clients according to the "Sender URI". The server must distribute now the message to the "interested listeners". Now it can be that a client says he is e.g. http://127.0.0.1:8000/ on the server this cli...

non routable ip address

I know that 127.0.0.1 is by convention loopback and that there are various address ranges which are reserved for local use. Is there an IP address that is reserved never to be assigned. I would like to test that something works when an IP address can't be found, I could just use a local address which isn't used but thought that there ma...

IPv4/IPv6 network calculations and validation for Java?

I am looking for a package that is similar to Net_IPv4 and Net_IPv6 but written for Java. It needs to be able to do the following: Verify an address is valid (e.g. 127.0.0.1 is valid, 127.0.0.257 is not) Return if an address is contained within a subnet (e.g. 127.0.0.11 is in 127.0.0.0/28) Return the broadcast address for a given subn...

How could one circumvent an IP locator besides proxy?

I need to put together a small brief about the weaknesses behind limiting content to specific countries based on IP address. Besides using proxy server located in another country, can you think of another way to circumvent such a system? ...

Why have DHCP and static IP address at the same time?

At my current place of employment, on my Windows box, when I do an ipconfig /all from my command prompt I see that I have both a static IP address as well as a dynamic IP address. Why could that be? I am trying to diagram our network structure for a new software project that I'm on...knowing the answer to this question could help out a l...

Distinguish the between intranet and official IP addresses

How can I find out whether a given IP address is an official internet address or an internal intranet IP address? ...

Discovering public IP programatically

I'm behind a router, I need a simple command to discover my public ip (instead of googling what's my ip and clicking one the results) Are there any standard protocols for this? I've heard about STUN but I don't know how can I use it? P.S. I'm planning on writing a short python script to do it ...

Why a same url opens different web pages?

Hi, I am facing a strange thing when i open some URL. The URL is (www.jobserve.com) When i open this URL from my home, it opens some web page. Same url if i open from my office network, i get a entirely differnt URL, which is what i want. Both, my home and office are in same city in India(3 Km. apart!) but somehow from my home networ...

Windows equalivalent to eth0

Is there a generic IP device name for windows similar to "eth0" used by Linux and Solaris? I am attempting to monitor SCTP traffic, which appears to be successful passing the ip address, but this means for every machine to use this application would changing to use the host address. Thanks ...

Headless Linux -> broadcast IP to Windows workstation?

Hello I'd like to sell headless Linux servers to SOHO users. Typically, they'll have a DHCP-capable ADSL modem cum switch to which they'll connect their workstation and the server. In order to just show up with the server, I need to find a way to just plug the server into the switch to get an IP address from the modem, and then have th...

Obtaining client IP Address through ALUI Portal Gateway

Currently using Oracle/BEA/Plumtree ALUI Portal 6.1, and am trying to display a client's IP Address. Problem is that since this content is being gatewayed, the portal server's address is coming up when I call <%= request.getRemoteAddr() %> (<%= request.getRemoteHost() %>) I am pretty much doing the java equivalent of this link, and i...

SLM248P Linksys/Cisco Switch Web Interface

I have some SLM248P linksys switchs. It says you can connect do it via a web browser. My question was how do i know the switches ip address is? ...

A Parallel IP address space exlusively for a P2P network?

I would like to do this because it would make peer location much more effective in my p2p network as I would know that all the addresses would be part of this network. How could I do this while remaining compatible with current transport layer protocols such as SCTP, and the current hardware used on the big wide Internet? Thanks, Andr...

Is there a way I can tell a process before it starts up or after it starts up which IP address to use on Windows?

I can program in C# so if there are any .NET classes available to reassigning IP addresses or if there is a command line operation for changing the IP address of a given process, that is what I think I'm looking for. I'm doing some automated browser testing and I want to have requests coming to my site from different IP addresses. My we...

Geolocation based, wireless mesh routing alogorithm: useful?

I'm in a team and we are supposed to be setting up a 'geolocation based', ipv6, wifi mesh network to run on google android. The idea is to use the geolocation (latitude, longitude, altitude) of each node to generate the IPv6 address, then use that to choose the closest node as the preferred node for routing through. Some optimisation i...