In Python, what is the best way to determine if an IP address (e.g., '127.0.0.1' or '10.98.76.6') is on a private network? The code does not sound difficult to write. But there may be more edge cases than are immediately apparent, and there's IPv6 support to consider, etc. Is there an existing library that does it?
...
Is it possible to get client IP address through Flash (swf) Action Script 3 and then pass it to php file to store it in database?
...
I'm trying to retrieve the ip address of the local machine in my program. The OS running is Ubuntu 8.10. I tried using gethostname() and gethostbyname to do it. All I can get is 127.0.1.1. I learned that it seems to be a Debian thing:
This thread explained it.
The content of my /etc/hosts file is also:
127.0.0.1 localhost
127.0.1.1 mymac...
Given a list of IP addresses how do I programmatically check if the local machine still has active TCP connections to these IP Addresses? I am using C#.
...
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
...
I am taking an IT class that is a bit over my head, but trying hard to keep up.
On a lab to regarding network topology using port scanners, I am instructed to "to develop a network inventory and topology for the 123.218.44.0/24 subnet."
What does the notation 0/24 mean there? I had assumed it meant to consider the network range 123.218...
Is it possible to query a list of IP addresses (or machine names) of domain computers that a domain user is currently logged into?
The question "Getting logged on user’s name with or without domain in Windows" comes close, only I want to find the opposite.
I ask about the possibility due to my lack of knowledge concerning the internal...
you know we have Request.UserHostAddress to get ip address in asp.net ,but this is usually user's ISP ip address not exactly user's machine ip who for example clicked a link.
how can i get real IP Address?
for example in stackoverflow user profile it is: "Last account activity: 4 hours ago from 86.123.127.8" but my machine ip address is...
I've written a little script that collects my external IP address every time I open a new terminal window and appends it, at well as the current time, to a text file. I'm looking for ideas on a way to visualize when/how often my IP address changes. I bounce between home and campus and could separate them using the script, but it would be...
I have 2 apps
1 Ruby (not written by me. I understand nothing of Ruby) and the other ASP.Net
The Ruby app determines the users's IP address (I'm told "using first IP found in "HTTP_X_FORWARDED" )and passes a hashed version of it to the ASP.Net app.
The ASP.Net app then determines the Client's IP address again (using Request.UserHostA...
I know it may sound stupid but anyway. Maybe there is a trick?
I just want that the local web server receives requests from my local machine but somehow sees a different IP address? Even one single that is different from the infamous 127.0.0.1 would of a great assistance.
Are there any options available?
...
I'm building a website using Ubuntu, Apache, and Django. I'd like to block people from filling out and submitting a particular form on my site more than once. I know it's pretty much impossible to block a determined user from changing his IP address, deleting his cookies, and so on; all I'm looking for is something that will deter the ca...
how to find how many users are in my network and display them juz like IPMSG?
...
I have written an ASP.NET application, and in this application I log the request IP address. And I also serve different content according to different IP range.
My question is, in my limited test environment, I only have 5 machines, each machine has only 1 IP address, I want to test fully about the function of my IP address based ASP.NE...
I know regex is dangerous for validating IP addresses because of the different forms an IP address can take.
I've seen similar questions for C and C++, and those were resolved with a function that doesn't exist in C# inet_ntop()
The .NET solutions I've found only handle the standard "ddd.ddd.ddd.ddd" form. Any suggestions?
...
Given an ip address (say 192.168.0.1), how do I check if it's in a network (say 192.168.0.0/24) in Python?
Are there general tools in Python for ip address manipulation? Stuff like host lookups, ip adddress to int, network address with netmask to int and so on? Hopefully in the standard Python library for 2.5.
...
Hi,
I have XAMPP installed in local laptop. And I have a almost static ip. I would like to give the ip to other to run it from thier browser. I configured apache httpd-vhosts.conf to listen my ip address:80 and added the virtual server with the ip address and domain root to local httdocs directory and the servername as localhost.
Apache ...
Hi folks,
is there anyway I could figure out an estimated (Olson) ZoneInfo value (eg. ("America/Los Angeles", "Europe/London", etc.), for a single public IP address ... in .NET?
I already have a full list of ZoneInfo values, so that's not a problem ... and in a drop down box. I just want to default a selected value based on an IP.
I ...
Every now and again, I need to start the Django development server, and have it viewable by other machines on my network, as described here:
http://docs.djangoproject.com/en/dev/ref/django-admin/#runserver
My machine’s IP address tends to change every now and again, so I’d like to have a little shell alias or something that spits out t...
Hi
I'd like to use the search & replace dialogue in UltraEdit (Perl Compatible Regular Expressions) to format a list of IPs into a standard Format.
The list contains:
192.168.1.1
123.231.123.2
23.44.193.21
It should be formatted like this:
192.168.001.001
123.231.123.002
023.044.193.021
The RegEx from http://www.regextest...