ip

Getting my public IP via API

Is there a public API from some big company to get my public ip from within a program? I've found http://ip-address.domaintools.com/myip.xml, which is exactly what I want, but unfortunately it blocks Python's urllib as well as many other http libraries, unless you spoof user-agent (anything doing that can't be called an API at all). T...

script to autoupdate IP in config file

Problem I have a SQL server that has a dynamic IP address. However I have a url e.g. 'mydynamic.com' which is automatically updated to the current IP of the SQL server Requirement I need a script (vb/bat) that can take this URL and resolves the IP. Then take a config file and replace a placeholder with that IP. The idea is that the co...

Can I get the IP address for a FTP upload at the server?

I provide a public FTP account for people to upload files into a temporary folder. An AJAX interface shows fresh files, then users can tag and move the file into a different folder. I would like to show every user just the files they uploaded themselves, not all the other ones that might be uploaded at the same time by other people. Ind...

Socket C# - Local Ip works, but Internet IP do not work

Guys, i implemented a Socket with Client and Server side. When I use my local IP (192.168...) it works. But when I put the Internet IP, it doesn't work! What's the main causes for that please? Thank you ...

Using Flash/SWF applications to retrieve a user's "real" IP address

I'm almost certain this is possible, but am not sure how to go about it. Basic idea: User visits a website using a HTTP/socks proxy. Hidden .swf file is embedded on the site which, when loaded by the client, sends data back to the web server, and that allows the IP to be logged along with a corresponding session ID of some sort which ti...

Cannot access XAMPP (1.7.3) from my local network

Hi I am running XAMPP 1.7.3 on windows 7. My problem is that when I try to access my server (localhost) from another computer, the server does not respond. For example, [on my computer] when I type in 'http://localhost', my pages come up. However, when I try accessing 'http://192.168.0.102' from my computer, nothing happens. When I type...

C# - Can't connect to my IP using Socket

What's wrong with this please? It throws this error: "Attempting to deserialize an empty stream" at server side in this line when I run the server: "this.tcpListener.Start();" This is my internet IP, if I use my local IP, it works. But i want the internet IP. Client side: TcpClient tcpclnt = new TcpClient(); Console.WriteLine("Connecti...

getting Ip address given by vmware to machine instance of ubuntu server

Hi I am having a vm image of an ubuntu server. Vmware is setup and it shows the login screen and allows me to login. Now I want to get the ip address that the vmware gave to this machine instance. I tried ifcong -a but it doent show any ip address other than 127.0.0.1. Am i doing it correctly or missing something? Kindly help. thanks...

Dynamic IP .htaccess blocklist?

Is it possible to block users from IP adresses with a dynamic file-based blocklist? So, suppose the .htaccess looks like: order Deny,Allow Deny from 123.156.0.1 Deny from 10.0.0.10 Allow from all Can this list be made dynamic, for example: order Deny,Allow [include Deny list here] Allow from all Another option would of course be t...

improving query times a sql ip lookup database

Hi, I have a table in sql server 2005 which holds an ip range and the corresponding info (country / city / etc). There are approximately 3 million rows and it currently takes just over half a second to return a record based on the query below. DECLARE @ip BIGINT SELECT @ip=3561360969 SELECT TOP 1 id, ipfrom, ipto, countrycode, countr...

how can I get the ip address of the request in a regested function of python xmlrpc server

I'm writing a simple xmlrpc programe in python. something like the following: def foo(data): # I want get the calling client's IP address here... How can I ? server=SimpleXMLRPCServer.SimpleXMLRPCServer((host, port)) server.register_function(foo) server.handle_request() As can be seen in the above, I want to get the client I...

How to determine if incoming IP address is from a mobile carrier?

Does anybody know of a good way (free or paid) to determine if an incoming IP is from a mobile carrier? There was a previous question on this: http://stackoverflow.com/questions/322440/api-to-determine-cell-carrier and the answer was "use an ISP database and match names". I guess I'm hoping that in the year and a half since this quest...

PHP Unique Computer ID

Is it possible for php(or javascript in the worst case) to create a unique id for a user that is not cookie or ip dependant. I have seen on myminicity.com that on each city the count only goes up once a day(it has a unique id for everyone i think) and even if I delete my cookies and refresh ip it still seems to detect me as visited alrea...

C# How to know if a subnet is part of a bigger network

Hello, I am working with a BGP table of the Internet (a huge file). However, route summarization can be a problem. My main issue is that, sometimes, big chunks of IPv4 space are announced (i.e., 172.16.0.0/16), but also more specific and smaller routes are announced too (i.e., 172.16.64.0/18). So there are two redundant entries in the B...

Get IP address for request into web.xml

Hi Guys, The server machine has a internal IP address of x.x.x.x and external IP address of y.y.y.y If the form action in JSP has the value x.x.x.x:9080 my code works properly But when it has the value y.y.y.y I am getting a bug. The code requires an internal IP address. Is there a way that I can intercept all requests made using exte...

how to setup "ip address","DNS", "hostname","MAC address" in python?

Dear All, I want to write a script for network security IP scan porpose, such a tool may need spoofing it's host NIC status for testing purpose, for example, to setup NIC's ip address, to setup DNS address, while to setup hostname, MAC address and enable/disable the NICs adapter. I googled and found most soultion is using "popen" ...

how to change originating IP in HttpWebRequest

I'm running this application on a server that has assigned 5 IPs. I use HttpWebRequest to fetch some data from a website. But when I make the connection I have be able to specify which one of the 5 IPs to make the connection from. Does HttpWebRequest support this? If it doesn't can I inherit a class from it to change it's behavior? I nee...

Is it possible to download multiple files from a remote location to a users hard drive with AS3 FileReference?

Can I develop a Flash AS3 download swf that will let a user select a location on their hard drive to download files to and then start the download of multiple files (in the same way I can do with upload)? Or should I zip all the multiple files first and download zipped files to local disk. My users will want to download potentially hun...

Amazon, AWS - What is a remap and how to calculate the costs

hi everyone, i got the first report for my account activity. the costs for remapping the elastic ip are quite expensive in relation to the cpu hours. my instance is running from 8 to 21 from monday to friday and from 8 to 9 on saturday and sunday. the start script at 8 associates an elastic ip. could anyone please explain me how to ...

Nginx+spawn-fcgi doesn't work with second IP

I can see html file,but when trying to visit a php file,I'll get a 404 error. but everything is OK,with first IP address, Why? ...