ip-address

VBS: Check IP address and open URL (but only once)

I'm trying to create a VBScript which will detect if the computer it is being run on is connected to our LAN at work by checking its IPv4 address (assigned by DHCP) and then open a specific URL depending upon whether it is inside or outside our network. The script will be mainly used on laptops which will roam between work (10.12.90.0/22...

Finding services running on given ip address for a range of ports

How do I find services running on a range of ports for a given IP address. getservbyport() function returns the service but it returns for the local host, I want to get it for given IP address ...

Log with ip addresses that pinged my computer, how?

Hi, I have a following problem. I have a Windows 7 computer with pinging enabled, and clients which ping my computer from time to time. I would like to have a log and real time reporting of ip addresses which are pinging me. Is this possible? ...

htaccess - How to restrict to access from my home

I have a website on the internet that I only want to be accessible from my house. Could I have htaccess be restricted to the MAC address of my router? If not, are there any other options? I don't think I could use IP address because my ISP changes it all the time. ...

how can I find the remote address of a continuous UDP stream

For those of you who play MW2 on the PC you know it is plagued by hackers and cheaters. I would like to create a solution where the host of a multi player game can selectively firewall out a cheater. The problem I am running into is I do not know how to locate remote IPs that are sending or receiving UDP packets. Netstat will only show ...

Is it safe to assume constant IP address with a COMET server implementation?

Our website uses an in-house implemented long-polling COMET server to communicate with the web-page on the client machine. A Connection object manages the requests and responses for a single client. The Connection object can live for many hours and deal with several hundred requests from the same client, while they remain "connected" to ...

How save ip of user, who use random generated ip?

in my project i need to allow rating system for users only once. i have a table in my database, where i store all ip addresses, and i check, if the user's ip is not in database, i allow rating. But now i met a problem. There are providers, that generate random ip addresses every time user restart computer. So when i call $ip=$_SERVER[...

Image position changes when IP address is typed in the address instead of hostname

I have a web site in ASP.NET MVC 2. I deployed it in the server. But when I browse the site, the image position behaves differently with ip address and host name on the URL. http://mysite/applicationsite http://192.28.252.13/applicationsite I couldn't figure out why its behaving differently. The image is more to the left when used ip ...

Rails 3: Validate IP String

In Rails 3, is there a built in method for seeing if a string is a valid IP address? If not, what is the easiest way to validate? ...

Cannot access visitor's ip address in php

Hi, i am trying to store ip addresses of people who are visiting my web site. For that i use the below given code. $serverIP=$_SERVER['REMOTE_ADDR']; but instead of getting an IP like 112.200.xxx.xxx (when i visit), i got 192.9.200.195.. somebody please help me thanks in advance tismon ...

Get ip address of visitors using Python (specifically Flask micro-framework)

Hi, I am using the Flask micro-framework (based on Werkzeug) which uses Python (2.6 in my case). I'm making a website where users can log on and download files. I need to get the ip address of users when they log on (for logging purposes). Does anyone know how to do this? Surely there is a way to do it with Python? I apologize for t...

getting ip address using PHP in case you are running VPN

Hi, I am using VPN, and thus if i check http://whatismyip.com it will give me different ip than $_SERVER['REMOTE_ADDR'] or getenv('REMOTE_ADDR'). whatismyip gives my original ip address while $_SERVER or getenv gives my VPN ip address !! is there anyway to get my original address ip using php in case that i am running VPN? and is there ...

Restrict certain user accounts to certain IPs in Django

Is it possible to only let a user log in while using a specific IP address? This IP address would be different for all users so simply writing an htaccess rule in Apache would not solve my problem. I also looked into writing a custom authentication backend but I don't see any way I could check the user's current IP address since there is...

How to get IP when using SimpleXMLRPCDispatcher in Django

Having a code inspired from http://code.djangoproject.com/wiki/XML-RPC : from SimpleXMLRPCServer import SimpleXMLRPCDispatcher from django.http import HttpResponse dispatcher = SimpleXMLRPCDispatcher(allow_none=False, encoding=None) # Python 2.5 def rpc_handler(request): """ the actual handler: if you setup your urls.py pr...

query ip-address on website - show different results?

hey guys, i wonder how difficult it is (and what programming languages i need) to retrieve a users ip-adress and based on it's location i show a different ad on my website. do you know any tutorials or can you tell what i have to search for to find a answer to that. regards matt ...

AOL users and using a secure server to bypass the floating proxy to get real ip.

I'm running an app that relies on ip addresses and we have run into a problem. The app only allows up to 50 submissions from the same ip. The problem we are having is that AOL users who have not submitted anything are being blocked because of AOL's proxies. I've been looking for ways around this, one solution would be MaxMinds ISP datab...

How should I handle unregistered accounts?

My impression is that, when I hit Stack Overflow for the first time, it records my IP address as a user since I can ask a question without being logged in, in the traditional sense, but I'm still tracked. Is this what SO does? Base a non-logged in user as an IP address? Or is it a combination of cookies/sessions and IP? I want to...

basic bonjour java IP address resolution

I'm using bonjour (with java) to try to get IP addresses for devices on a network. I've looked at this question: http://stackoverflow.com/questions/1243093/get-device-ip-with-bonjour and am using the InetAdress getByName method (with a resolved host) to get an IP address. The problem is that this IP address I get doesn't match anyth...

Simple IPV6 Address Question

Hello, I have a /96 block of IPV6 addresses and i'm wondering how i could some how find the next address (Since ipv6 addresses can contain numbers and letters). I know the first address could be in numbers but i've yet to find out how i could really find in some kind of order for that amount of addresses E.G: What technique could i use...

Wamp Put online

I have wamp installed on my pc. and i have used the put online option. But when i visit my ip address. it doesnt visit my local host. on my desktop it used to happen. when i got my laptop. not it redirects to my Router Modems login page. How to set wamp to access it via my ip address. ...