FAQ Database Discussion Community


Check IP address range

sql,ip
I try to make IP to country query. Simplest way is make query like this: select Country from dbip where 8 * power(255,3) + 8 * power(255,2) + 8 * power(255,1) + 8 between FromIPInt and ToIPInt It works for small Google's IP, but for greater IP: Arithmetic overflow error...

NET: Implmentation in C#

networking,ip
I have a router that runs on two VM. The second VM has IP address of 9.1.2.2 I have look IP address overview,

What ip address blocked when i try to log in to website?

c,network-programming,ip,ip-address
When i try to log in to a website after a few times my ip is blocked . I tried to search a material on this subject and haven't found 1)which ip address is blocked(there is the one of the network and the one i can get from www.findmyip.com) 2)how...

two lines with the same number of address destinnazione in ROUTING TABLE

table,networking,routing,ip
I am studing a particular case in routing table. As the title i have this table for a particular router in a net: destin.IP Mask NextHop Interface 193.14.5.160 255.255.255.0 ---.---.---.--- m0 193.14.5.192 255.255.255.0 ---.---.---.--- m1 111.0.0.0 255.0.0.0 ---.---.---.--- m0 192.16.7.0 255.255.255.0 111.15.17.32 m0 194.17.21.0 255.255.255.0 111.20.18.14 m0 194.17.21.16 255.255.255.0 111.20.18.14...

Grabbing IP addresses from a file and counting the occurences

python,file,python-2.7,ip
I am quite new to python and got stuck while doing a school assignment. I am supposed to grab IP addresses from a file and then count the amount of times each IP appears and print out the result. I keep getting an error: Unhashable Type: 'list' Here is the...

QLineEdit IP partial validation

qt,ip,qlineedit,qregexp
In my project I want to filter some of my data via IP input. I also want to allow to filter by partial IP input for example : 192.168. I found out how to set the complete IP validation. QString oIpRange; QRegExpValidator *poIpValidator; // Client IP validation mask oIpRange =...

Handling IP changes in uPnP device

ip,arm,upnp
i am working in an ARM based media processor. I need to implement upnp for the device. Advertisement is only needed, i.e device discovery so IP address of the device can be found. I was able to implement the advertisement but i am failed when the IP of the device...

Store IP into mysql database

php,mysql,ip,ipv6,ipv4
I'm using a simple way to get the real ip. I found it here: How to get Real IP from Visitor? The IP will be stored into database, in some column width VARCHAR 15. I'm using Varchar with length 15 because I understand that the ip address can be 123.456.789.123,...

Issues in finding IP addres in my computer and in an online

ip
Its a small and simple question, But still i didn't get in an online. I just trying to find out my IP address of my computer. So with help of online, I just follow www.whatismyip.com . so it shows like this "xxx.xxx.xxx.xxx". And when i run IPCONFIG in my command...

Calculating the size of utilized Socket Options

sockets,tcp,udp,connection,ip
Why is there not an API for determining what socket options have actually been set? (security? But the local and remote end points are available anyway) Aside from deriving the socket and manually storing the information how can one get all options in use on a socket without iterating over...

Can a private IP address change?

google-analytics,ip
Okay, this may be a stupid question. I have setuped a Google Analytics account to analyze the traffic of my own site (online portfolio). My question is: How can I exclude the traffic from me? Can I just simply get my public IP address and exclude it? Will it change?...

Http Get Request for IpDBInfo using an IP Address

c#,asp.net-mvc,geolocation,ip
I am working on a web application and it needs to track a location using an IP Address and I am new to sending requests to some APIs and getting a response from them. I was able to retrieve IP address of the user using Request.UserHostAddress and was able to...

Django log user IP for user_login_failed signal

python,django,ip,signals
I would like to log the user IP address in my Django application, specifically for login, logout and failed login events. I'm using Django builtin functions as follows: from django.contrib.auth.signals import user_logged_in, user_logged_out, user_login_failed from ipware.ip import get_ip import logging logger = logging.getLogger(__name__) def log_logged_in(sender, user, request, **kwargs): logger.info("%s User...

access tomcat deployed application (aws) by domain name (www.mydomain.com)

tomcat,amazon-ec2,dns,ip
I am new to aws hosting, please help me out in pointing the domain name to tomcat hosted application. During configuration following steps are taken- 1- I have created ec2 ubuntu instance. Configured with java, tomcat. Deployed my war files on tomcat. I am able to access the application successfully....

Calculate broadcast ip address using ipcalc

bash,ip
I have a list of ip addresses in cidr formart in a text file,one cidr per line and I would like to calculate the broadcast ip address of the cidr. I understand that I can do that using ipcalc with the -b option but ipcalc doesn't take a text file...

GStreamer 1.0 “autovideosink” does not open the display

camera,ip,gstreamer,rtsp
Using the default GStreamer 0.10 installed in my ubuntu 14.04 I can capture my IP camera: gst-launch-0.10 rtspsrc location=rtsp://admin:[email protected]:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink It has the problem that the capture in the display stops after a while. Although the camera is still sending rtsp packets until I...

Editing /etc/hosts for MPI cluster

linux,ip,mpi,cluster-computing,host
I struggled trying to set up an MPI cluster, following Setting Up an MPICH2 Cluster in Ubuntu tutorial. However, I tangled things up and it did not work, so I undid all the changes (except of the passphrase in step 7, which I have no clue how to undo) and...

Need help clarifying TCP ports

sockets,tcp,ip,tcp-ip,ports
Researching about ports online, I have found it being described in many different ways. The main way is that a port is a like a door on your computer used by a specific process. A second way it is commonly explained is that it is just a tag, an extra...

creating boost::asio::ip::address_v4

c++,sockets,boost,ip
I'm not able to find a reasonable whitepaper that explains how to create boost::asio::ip::address_v4 for example: // how to initialize address_v4 object? address_v4 addr; // with an IP address? addr.from_string("192.168.1.100"); // does not work, see bellow io_service io; tcp::socket socket(io); tcp::endpoint remote; remote.address(addr); remote.port(21); // the rest... according to boost...

Redirect ranges of IPs in JavaScript (no .htaccess)

javascript,redirect,ip
ANSWERED - How to specify a range of IP addresses in a redirect Here's the working script: <script type = "text/javascript"> var blocklist = /^(10\.20\.30\.40|50\.60\.70\..*)$/; if (ip.match(blocklist)) { window.location.replace('http://fakeblog.com/'); } Will match IPs 10.20.30.40 as well as 50.60.70.* and redirect to a different page....

Why shift bits by 8 in Socket Programming - C?

c,sockets,ip,bit-manipulation
I am studying the FreeBSH Developers Handbook and there I am seeing this code for Socket programming: struct sockaddr_in sa; sa.sin_addr.s_addr = htonl((((((192 << 8) | 43) << 8) | 244) << 8) | 18); Why is the bitwise shift and or is used here? I know what bitwise shift...

A program to update the public IP address of a network/ computer to a website

osx,ip
Sorry if this is not really relevant to stack overflow but I'm sure someone will know the answer. I have a Mac at home and want the IP address of that network to be sent to a page on my website. I have port forwarded a program on my Mac...

IP packet and MAC Destination Address [closed]

tcp,ip,data-link-layer
I've a simple question about IP and MAC. Lets say we have two LANs, A and B, connected by a Bridge (no Network Layer). We have host 'X', which sends an IP packet to host 'Y'. It will send it through a MAC frame. The Payload of that MAC Frame...

Why does this hosts file entry only work with a browser and the host name?

windows,windows-7,ip,hosts
My workstation's C:\Windows\System32\drivers\etc\hosts file contains the following (hypothetical) IP address mapping: 111.222.33.444 sub.domain.tld In Firefox I can successfully browse to the sub.domain.tld host name. Since I can browse to the host name... Why can I not browse directly to the 111.222.33.444 IP address? Why can I ping neither 111.222.33.444 nor...

Validating IP never succeeds

java,android,validation,ip,matcher
The user enters an IP address in a EditTextPreference and I try to validate the IP with this code: private EditTextPreference ipPref; private Matcher matcher; private SharedPreferences settings; private final Pattern IP_ADDRESS = Pattern.compile( "((25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9])\\.(25[0-5]|2[0-4]" + "[0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]" + "[0-9]{2}|[1-9][0-9]|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}" + "|[1-9][0-9]|[0-9]))"); @Override public void onCreate(Bundle...

AttributeError: 'NoneType' object has no attribute 'groups'

python,ubuntu,ip,attributeerror,arp
I don't know how I should ask this question. If I make any mistakes, I would appreciate it if someone could correct them. I am writing a program in python on Ubuntu. In that program I am struggling to get Mac address of remote machine from its IP address (RaspberryPi),...

How to get local IP address in javascript html5

java,javascript,html,html5,ip
I want to get Ip address of my machine in javascript which is further refer in my html page. I have refer all the suggested links but I do not get any answer. I do not want to use any link to get the IP so i tried with following...

Set ip as variable in cmd [closed]

batch-file,cmd,ip
I am making a program in batch and I want to get the ip of a website and set it as a variable in the batch file. Please suggest a way to do that . Please Help

How to get client's IP in JAX RPC web services without Servlet Filter?

java,web-services,ip,soap-client,jax-rpc
I have to log the client's IP address who is using my JAX RPC web service server. IBM adviced to use servlet filters and get the IP using HTTP Request: http://www-01.ibm.com/support/docview.wss?uid=swg21304368 Is there a different way to get the request? I m using IBM WAS 8.5 and SOAP 1.2 for...

IIRF Allow Specific IP's in a blocked range

ip,range,blocked,iirf
I have a range of IP addresses that are blocked. But I have 3 ip addresses within this block that need to be allowed. Can anyone help with this? The Rewrite rule looks like this: RewriteCond %{HTTP_true_client_ip} 54\.(242|243|234|235|236|237|224|225|226|227|208|209|210|211|221|204|205|196|197|198|80|81|82|83|84|85|86|87|88|89|90|91|92)\.\d{1,3}\.\d{1,3} RewriteRule ^(.*)$ $1 [F] I want to allow these three [54.243.53.243, 54.243.53.248,...

python compare ip range to host file

python,ip,ip-address,subnet
I have a simple python script that compares a range using netaddr with the host file. I need to print the whole range and the matches. This as far as I can go. Snippet below: ip_range = sys.argv[1] host_file = open('/etc/hosts') for ip in IPNetwork(ip_range).iter_hosts(): ip_results.append('%s' % ip) for Z...

how TCP segments can be misrouted

networking,tcp,ip,tcp-ip
I am just wondering, how the TCP segments can be mis-routed, isn't the original source and the ultimate destination in the IP header never get touched!

Powershell convert String to System.Net.IPAddress

powershell,ip
I'm new to powershell and I'm trying to automate creating a DHCP reservation. So far I'm able to get the IP address like so: $IP = ( GEt-VM -ComputerName $HVCOMPUTERNAME -VMName $HVNAME | Get-VMNetworkAdapter).IpAddresses[0] This returns a string like: 192.0.2.1 However, the Add-DhcpServer4Resrvation cmdlet does not accept an ip address...

.net HTTP_X_FORWARDED_FOR NULL on localhost

c#,asp.net,http-headers,ip
Apologises if this has been answered else where, I could not find it. In the case it has not, I am trying to find the original IP of a machine who has accessed the site. In my basic understanding, the variable HTTP_X_FORWARDED_FOR will display the user's IP regardless of proxy's...

Initializing IP and PORT with variables in program

c,string,sockets,pointers,ip
I am reading IPS and PORTS of few Sockets through this text file IP_CONFIG.txt "192.168.128.3" IP_CSR "192.168.128.2" IP_HMIR "192.168.128.1" IP_OBCUR "192.168.128.4" IP_ASRR "127.0.0.1" IP_RSOR "127.0.0.1" IP_RSO_DR 1901 PORT_CSR 1901 PORT_HMIR 1901 PORT_OBCUR 3567 PORT_ASRR 4444 PORT_RSOR 7777 PORT_RSO_DR I implemented the code with the following way.. 1) I saved all...

Site naively takes IP as a form argument - am I untrackable?

python,forms,python-3.x,post,ip
Note 1: I have no experience in web programming. Note 2: I don't do any harm. The comments get deleted automatically, and I don't plan to make a workaround though I think I could. I'm just playing. This is the comment form of some website: <form method="post" target="_top" action="index.php" name="akocommentform"...

postgresql cidr find child blocks

postgresql,ip,cidr
I'm looking for a way to get direct children networks from cidr blocks stored in postgresql using the builtin cidr type. Example database CREATE TABLE nets ( id serial primary key, net cidr ); INSERT INTO nets (net) VALUES ('10.1.0.0/16'), ('10.1.0.0/20'), ('10.1.1.0/24'), ('10.1.1.8/29'), ('10.1.1.32/28'), ('10.2.15.0/24'), ('10.2.15.64/27') The desired query should...

Python, how do I drop the first octet in reverse zone? fun with strings

python,dns,ip,reverse
I need to create a reverse DNS entry for IPv4. The ip address is 108.61.190.64 But the reverse DNS entry is = each octet in reverse order with the last octet dropped i.e. $ORIGIN 190.61.108.IN-ADDR.ARPA. or 12.34.56.78 -> 78.56.34.12 Is there a Python tool for this task? [::-1] does a...

how to setup IPs from different subnet on 1 network card, Centos 6.6

linux,networking,ip
one centos 6.6 server, need add 15 Ips to it, my boss gives me 15 Ips from 2 different subnet. server Ip 173.245.7xx.xxx ips 173.245.7xx.xxx/29 23.27.1xxx.xxx/28 this is what I did, all the ips in 173.245.7xx.xxx/29 works fine, all the ips in 23.27.1xxx.xxx/28 I can ping it from other server...

How to extract the first three segments of an IP address in android

java,android,regex,ip
Example: xxx.xxx.xxx.xxx is an IP address format and I want to get only the first three segments (with dots): xxx.xxx.xxx. Another example: 192.168.0.160 and I want only 192.168.0....

Java RMI: running RMI application over the Internet with public IP of router

java,ip,ip-address,rmi,router
We have developed a Java RMI distributed board game between peers in our LAN, using our private IP addresses (192.168.x.x). Now our teacher has asked us to try our application at home: in other words, me and my colleague should play at our own house over Internet, in order to...

How can others connect on my AHKsocket winsock server? External IP?

connection,ip,autohotkey,tcp-ip,winsock2
Using AHKsock (AutoHotkey), I built a minimalistic client-server system with AHKsock_Connect, AHKsock_Send and AHKsock_Listen on both sides to communicate with each other. It works and I can send messages back and forth, if I connect to the server using localhost. But I want the server to be accessible from everywhere....

TcpClient- how to connect to an external IP address?

c#,tcp,ip,ip-address,tcpclient
I have been trying to setup a basic scenario where a TcpClient connects to a TcpListener on the same machine, but so far it only works for 127.0.0.1 and 192.168.X.Y. Here is my code: var server = new TcpListener(IPAddress.Any, 51328); server.Start(); var client = new TcpClient(); client.ConnectAsync(IPAddress.Parse("address from whatismyip"), 51328);...

Exclude multiple non-consecutive IP addresses from Google Analytics

regex,google-analytics,ip,exclude
I have over 100 satellite offices with static IPs that I need to exclude from my Google Analytics report. The limit seems to be 255 characters which is nowhere near enough. They are not consecutive or in blocks either so not easy to implement a regex. Any ideas if this...

What's the practical limit for the data length of UDP packet?

sockets,udp,ip
This is wikipedia's explanation of the length field of the UDP header: Length A field that specifies the length in bytes of the UDP header and UDP data. The minimum length is 8 bytes because that is the length of the header. The field size sets a theoretical limit of...

I can't find DSCP field in IP header, only the deprecated TOS field

c,network-programming,ip,qos
I will try to garantee some QoS with my access point made with Raspberry Pi. Before starting, I'm getting my hands dirty: I read about the tcp, udp and ip headers. In the IP header description I saw the DSCP field, originally defined as the Type of Service field. DSCP...

finding an ip used illegally on a network switch

networking,ip
In our college there are many IP addresses for every labs for example our it lab has IP range of 172.16.24.* and cs lab as 172.16.22.*. How to find which cs lab IP is being used illegally in our lab? We have a switch for each lab. Is there...

Why is the IP layer not removed by the kernel in the ping program

c,linux,ip,ping,icmp
I am looking into the standard ping implementation. Here the icmp structure is created and the data is filled in. The IP layer is added by the kernel. However when we receive a message using the function http://linux.die.net/man/2/recvfrom I observe that they are first parsing the IP packet and then...

dual public IPs for same adsl connection?

networking,ip,ip-address,router,dyndns
I'm using a ZTE ADSL router to connect to the internet. I can use the internet without any trouble. but when i check my public ip in the router(192.168.1.1) it dispalys it as 100.68.40.XX under wan ip. And when i check the public ip in my browser using googe or...

Getting IP address of Android when connected to Cellular Network

android,networking,ip
Is there any Simple Way to get the IP address Of my phone when connected to internet through mobile data Network. For getting WiFi IP address i am using following simple Technique. WifiManager wm = (WifiManager) getSystemService(WIFI_SERVICE); String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress()); Is there any way similar to above to get...

Why does a routing table on my Android device has two almost equal entries (different metrics)?

android,routing,ip
Please take a look at the screenshot. There are two entries for the destination network 192.168.1.0

How bad is ip fragmentation

sockets,networking,routing,ip,ip-fragmentation
I understand that when sending ip messages around, each hop in the network path between be and my packet's destination will check if the next hop's MTU is bigger than the size of the packet I sent. If so, the packet will be fragmented and the two packets will be...

Connect python application to internet through proxy IP?

python,sockets,ip,urllib2,proxy-server
At my workplace we access internet through a proxy server IP entered in Preferences > Network > Connection > Manual Proxy configuration. where the Proxy IP is entered, I want to learn how to do that setup in python so for my internet based application .

python ipaddress()reverse_pointer equivalent for 3.4

python,dns,ip,ipv6
I am trying to get the reverse IPv6 arpa from a valid IPv6 address but the feature I would like to use is only available in Python3.5 and FreeBSD ports is still on Python3.4 In [1]: import ipaddress In [3]: ipaddress.ip_address("2001:db8::1").reverse_pointer AttributeError: 'IPv6Address' object has no attribute 'reverse_pointer' What is...

Convert IP's in Numeric to traditional IP display

sql,sql-server,ip
I am trying to convert IP addresses from numeric (eg 4183726815 ) to the actual traditional IP display (eg 192.168.1.230) in MS SQL Server. I have found other code (below), however I then get an error. CREATE FUNCTION dbo.IntegerToIPAddress (@IP AS bigint) RETURNS varchar(15) AS BEGIN DECLARE @Octet1 tinyint DECLARE...

Limit specific page access based off of physical location

php,html5,ip
For a project at my school, I would like to allow members to 'sign-in' at the end of meetings to show their attendance. Obviously, there will be people who arn't at the meetings and will try to cheat the system. The way I was going to go about this was...

How to use MQTT over the internet?

networking,ip,mqtt,mosquitto
Currently, I'm successfully running a mosquitto broker, subscribing to topics and publishing messages with clients in a local network. How can I communicate with another local network which is located at a different IP address? Should I set up 2 mosquitto brokers, one for each local network? ...

Dynamic loose source routing in IP networks

c++,visual-studio-2012,boost,routing,ip
Okay guys, I have this idea to recreate a program wich could find the best rout in IP networks. I found one guy on the internet who did it, and he shared some code..but whatever I'm doing with it, I can't make it work. I'm using Visual Studio 2012 with...

What is the last IP address that can be assigned to a class c subnet with a prefix of 192.168.56.128/26?

networking,ip,ip-address
What is the last IP address that can be assigned to a class c subnet with a prefix of 192.168.56.128/26? How did you go about getting this answer (so that I can work them out myself in the future?) Thanks!...

Is secure to let access to ip-based blocked website to 127.0.0.1?

security,ip,localhost
I have a website that should not be visible for people outside some countries. I do a ip-blocking, but for testing purposes I need to let 127.0.0.1 access to the website. I know that ip blocking isn't totally safe, but, letting 127.0.0.1 access, can create troubles?...

jQuery $.get not working (Not Found 404)

javascript,jquery,ajax,get,ip
Please help me with a problem - get function not working for http://wtfismyip.com/text or http://www.passwordrandom.com/query?command=ip Code: <span id="global_ip" class="global_ip">global ip - get test</span> <script type="text/javascript"> $('#global_ip').click(function () { alert('click!'); $.get({ type: "GET", url: "http://www.passwordrandom.com/query?command=ip", dataType: "text" }).done(function (res) { alert(res); }).fail(function (jqXHR, textStatus, errorThrown) { alert("Call failed: " + textStatus...

How to find out an IP is pointed to gmail or pointed to google?

networking,ip
I am trying to find some webmail servers via testing their IPs. When I type an IP into browser, it shows goole's searching engine. However, even though it belongs to gmail, when I type it into the browser, the browser will be directed to google's searching engine. Is there anyway...

sed: replace ip in hosts file, using hostname as pattern

bash,replace,sed,ip,hosts
I'm learning about sed but it is very difficult to me understand it. I have adsl with dynamic ip so and i want to put current ip on hosts file. This following script just tells me the current wan ip address and no more: IP=$(dig +short myip.opendns.com @resolver1.opendns.com) echo $IP...

Is there any way to transparently share another machine's monitor over IP? (like virtual KVMs share mouse/keyboard) [closed]

ip,emulation,multiple-monitors
Context 1 PC (Win7) 1 Laptop (Win8) 1 Monitor with multiple inputs, switchable via button on monitor (both machines connected) Problem Laptop has 2 screens running, but it would be useful to use the desktop machine as well without having to wait ~2s for the monitor to switch inputs. If...

C++ Winsock programming, receiving no response from HTTP protocol

c++,sockets,http,tcp,ip
As the title says, I've just began studying how the TCP/IP protocol applies to C++, so I tried sending a packet to any random website (In this case www.nasa.gov), using the IP address (DNS Resolver) and a random port (I went for 80), and I am receiving no answer. I...

What are bots trying to do by hitting my website?

ip,bots,hacking
At the end of each month my company sends out web statistics to show who was accessing our website, where they were from, their IP addresses, etc. Our site is very specific to my region of the United States, yet a lot of our traffic comes from Ukraine, France, Russia,...

Ruby geocoder on Heroku yields private IP address

ruby-on-rails,heroku,ip,rails-geocoder
Ruby Geocoder (http://rubygeocoder.com/) works fine for getting the latitude and longitude of a known address. Now I am trying to use it to look up a Country code by IP Address so that a new user won't have to select their country. if @person.country.blank? ip_loc = Geocoder.search(my_ip_address) if ip_loc.present? @person.country...

Batch File get Specific IP into Variable

cmd,ip,netsh
I am trying to select a specific IP address in a windows batchfile. This line of code works, but gets the wrong IP address: for /f "delims=: tokens=2" %%a in ('ipconfig ^| findstr /R /C:"IPv4 Address"') do (set newip=%%a) If I type this at the command line, it gets a...

python- How to properly send http GET requests to different Host-IPs but same host

python,json,ip,python-requests,host
I'm trying to make a small script to send GET requests to a Host that has multiple IP addresses. So far I was able to make the script send the GET requests with those different IPs all at once(same time), is there a simple way to make it so I...

bash - for loop for IP range excluding certain IPs

bash,for-loop,ip,ip-address,exclude
I have the below for loop for ip in 10.11.{32..47}.{0..255} do echo "<ip>${ip}</ip>" done I want to exclude this iprange: 10.11.{32..35}.{39..61} from the above for loop. This ip range is a subset of the above one. Is there a way to do that? I tried this, this doesn't work: abc=10.11.{34..37}.{39..61}...

ARP when sent IP is wrong in every packet

ip,packet,arp
I have a question that I encountered in my Operating Systems exam today. Given a process that "forges" the IP address in every sent packet (gives the wrong IP address), does the ARP work correctly? I maintain that it doesn't, since the packet wouldn't know where to return the "ack"....

merging of multiple IPv4 address blocks on the basis of their country region

networking,ip,ipv4,maxmind,cidr
I have IPv4 blocks in the CIDR notation form. These blocks are divided on the basis of city I want to merge them one level up I mean till region level e.g 12.17.230.48|12.178.230.63|US|Texas|Temple 12.178.230.64|12.178.230.95|US|Texas|Abilene 12.178.230.96|12.178.230.111|US|Texas|Jayton 12.178.230.112|12.178.230.119|US|Texas|Wichita Falls 12.178.230.120|12.178.230.127|US|Texas|Mansfield 12.178.230.128|12.178.230.159|US|Texas|Waco (Bellmead) 12.178.230.160|12.178.230.167|US|Texas|Irving 12.178.230.168|12.178.230.175|US|Texas|Fort Worth...

How to remove www before the IP address

php,.htaccess,url-rewriting,dns,ip
I am redirecting my website from non www to www using htaccess, .htaccess file config Options +FollowSymLinks Options -Indexes RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] So that my domain is redirecting to www.website.com instead of website.com . But...

Client recognition by ip

java,javascript,ip,personalization,clientip
I want to track the clients that visits my site, and save them by IP. That way, next time he will visit my site I could customize my site to match is needs and make it more personal. One of my problems is that the clients IP is constantly changing.......

Why is a website assigned the same ip address each time?

ip,server
Why is a website assigned the same ip address each time? Discuss with a suitable example whether a server can be assigned two different IP addresses. Would appreciate some help in these two questions. Thanks...

How to share my localserver with another computer?

ubuntu,ip,localhost,localserver
I am trying to see my localhost in another computer(which is in the same network) but it doesn't seem to work. I have found my static IP address and use it to see the localserver but I get nothing back. http://xxx.xxx.x.x/project/test.php I am working on an UBUNTU system and running...

Request from different Country IP

python,proxy,ip
I would like to view the movie content from a different country on the Playstation store. However, the playstation store blocks the IP based on location of the request, so a movie in Canada cannot be viewed from the US: https://store.playstation.com/#!/en-ca/movies/the-house/cid=UV0130-NPVA92773_CN-0000000000236063 Is there a way to do something like the...

Bind docker container to IP on OSX

ip,docker,containers
On Ubuntu I do something like this sudo ip addr add 192.168.33.30/21 dev eth0 docker run -p 192.168.33.30:80:80 -d foo/bar /sbin/my_init Then I can open up a browser at http://192.168.33.30. How would I accomplish the same thing on OSX? (OSX has no 'ip addr' and this boot2docker-vm thing)...

Batch Random Pinging(Trying to determine if a ping is successful)

batch-file,random,ip,ping
I have made a program that creates random IPs and pings them to see if they exist. It records the output using '>' and '>>'. I want to check if the ping times out and if it does exclude it from the text document. This is my code so far:...

How to resolve lost service details (Avahi, ZeroConf)?

ip,ip-address,zeroconf,avahi
I'm trying to write some kind of service browser with Avahi. Discovering and resolving new services works just fine, however I'm facing a problem when I try to resolve service that was lost in ItemRemoved handler. "org.freedesktop.Avahi.TimeoutError: Timeout reached" error occures. I suppose I'm doing it wrong way, thus my...

Symfony2: Getting user IP in custom authentication provider

symfony2,authentication,ip
I'm creating my custom authentication provider and listener with Symfony. And also I need to implement IP ban on some unsuccessful login attempts. Thats the reason why I need to get it in the authentication provider where I check if credentials are valid. The problem is that I can't inject...

How to connect to database on NAS from Vagrant-box

database,ip,vagrant,virtualhost,nas
I am currently developing a website with a virtual server based on Vagrant. Before that I always used my NAS-webserver to develop my sites. I want to keep using my database on the NAS cause it's easy to handle through phpMyAdmin that is installed as an app on the NAS....

How to allow access for only United Kingdom and a second country

.htaccess,ip
I'd like to restrict the allowed IPs to UK and a second country, say Brazil or whatever other one. I did find an answer, but the link to the tutorials are not working. Any help will be appreciated. Cheers...

Can someone find my EC2 information?

node.js,amazon-web-services,amazon-ec2,ip,privacy
I have an AWS EC2 instance and I run a nodejs server for a website. You can easily find out the IP and the service provider (in my case Amazon), but my question is: can you find out more information (i.e. name, country) about the person who owns the VM?...

Tracking IP on a network

networking,network-programming,ip,network-protocols
I need to know the ip addresses visiting my server (Windows Server 2003). Scenario - The clients are accessing a particular tool

Router with DDNS, unable to update ip in noip

configuration,dns,ip,router
I have a D-Link DWR-512 router, which i need to create a dynamic dns, so i can access to the router throught the dns instead of the ip. The router is only connected to solar inverter panels, so i can't use the noIp dynamic update client software to update the...

Add IP Address to Amazon Web Services (AWS) PEM Key

amazon-web-services,amazon-s3,ip,ip-address,pem
I have a website hosted using AWS and I can log in at the office but when I get home, it doesn't let me using the same credentials. How can I add my home's IP address to the account? I'm not sure if I have to whitelist it from somewhere...

Cannot connect to Azure Cloud Service from my Azure Website with Virtual IP?

azure,networking,ip,azure-web-roles,azure-web-sites
I have a Azure Website with virtual IP (ip based SSL), however, in my cloudservice I have to specify the address of my website to whitelist. Somehow I think I'm missing the obvious here since I cannot connect to my webservice when I deny all BUT my website. If I...

CloudFlare DNS Overview

dns,ip,tcp-ip,cloudflare
This is a definitely a high level question so please take that with a grain of salt. I'm using GoDaddy as my registrar to point to my github pages website. I've uploaded the CNAME file and the URL resolves correctly. I've then set up CloudFlare on my site and am...

Does IP address of a DNS changes over time?

http,dns,ip,httprequest,ipv4
I have a set of domain names and their IP addresses. When i send http requests to the domain names and IP addresses separately then I found discrepancy in the responses. The responded hosts are higher while sending http requests to the domain names than IP addresses. So, I was...

Batch - Find network IP address of computer using computer name

batch-file,ip,computer-name
I am a BEGINNER STUDENT of Batch scripting. The problem I have is that I am able to retrieve a computer name from my LAN by pinging its IP address (see code below). However, I'm struggling to find an equally simple way of getting the IP address of a computer...

Ip address with “http://”

networking,ip
i have a doubt about the ip address. Is it correct to write the "http://" before the ip address? Example http://192.168.1.1 There is any situation that the "http://" prefix must be write? I just have to connect to a device in LAN, but i'm asking in general. If i write...

Sending scapy IP packet with no interface IP error

python,ip,scapy,mac-address,arp
I'm currently trying to send an IP packet to an interface using the send(pkt, iface="eth0") function and I'm getting the error: WARNING: Mac address to reach destination not found. Using broadcast The interface I am trying to send out on doesn't have an IP address, and thats the way I...

How to cut broadcast ip address into another variable

linux,bash,ip
How can i get the string of the ip address. for example i enter 192.168.2.1, is there some method to cut the 2 and 1 into other string. IF not my for loop will have problem. echo -n "Please enter bmc start ip to ping 192.168." read bmcipStartaddress echo -n...

How to add a name to namespace?

linux,networking,namespaces,ip
As I know, I can use the "clone" to create a process and a namespace, but the namespace created in this way has no name. For example, I create a network namespace with the parameter: CLONE_NEWNS, but in the command "ip netns list", there is no namespace list because the...

Check first X digits of IP address

c#,ip,digits
My goal is to have code execute if the local IP of the user does not start with 10.80. I can't find a way that isn't error prone, for example: Here's what I have to get the I.P.: IPHostEntry host; string localIP = "?"; host = Dns.GetHostEntry(Dns.GetHostName()); foreach (IPAddress ip...

Retrieve IP address data from mongodb in pymongo using regular expression or pattern matching

python,regex,database,mongodb,ip
I'm using mongodb to store my data and i used to following python script to execute a query to find count of a collection, collection_name = "prodresultlistCollection_%s_%s" %(sys.argv[1], sys.argv[2]) my_collection = mydb[collection_name] parameter = "IP addr" ip = "10.20.30.40" count1 = my_collection.count({ '$and': [{parameter:'%s' %(ip)}]}) Here the count1 shows the...

Trying to access user ip address of the visitor from local host but instead of showing 127.0.0.1 it is displaying ::1

php,mysql,database,ip
<?php require 'connection.php'; $user_ip = $_SERVER['REMOTE_ADDR']; echo $user_ip; ?> Output being displayed ::1 I am just practicing to get the visitor ip to count that how many vistors have visit the website....

Eclipse Google App Engine Server cannot be reached via the actual IP

java,eclipse,google-app-engine,ip
Tool: Eclipse Luna Language: Java Component: Android, Google Appengine (Endpoint) and Enterprise Application Project. At first, I created an Android application and used it to generate the Cloud Endpoint Backend. I was able to connect to the dev server via the IP of my laptop. Then, I realized that my...

PHP: Tor check not working

php,nginx,ip,tor
I've installed a Tor relay and Nginx and created my .onion on my Linux server. In torrc HiddenServicePort 80 127.0.0.1:8747 In nginx's default: listen 8747 I've modified TorDNSExitList's PHP Pear Net_DNS to use Net_DNS2. When I echo out the $ip, $myip, $myport I get: ip = 127.0.0.1 my ip =...