I need to show IP address in page footer in static site is it possible to get IP address using JavaScript or jQuery...  I tried this but it is giving same value in all computers  &lt;script&gt; var myip; function ip_callback(o) {     myip = o.host; } &lt;/script&gt; &lt;script src="https://smart-ip.net/geoip-json?callback=ip_callback"&gt;&lt;/script&gt; &lt;script&gt;alert(myip);&lt;/script&gt;
8984
I need to somehow retrieve the client's IP address using JavaScript; no server side code, not even SSI.  However, I'm not against using a free 3rd party script/service.
108360
I developed my website under /var/www/html (for the development part) so I can consult the website when I enter the server's IP address into my web browser. On the same server I have the same products under /var/www/example.com and it's this domain than I want indexed on Google.  My problem is that Google has indexed both. So sometimes the goods appears in Google with example.com and sometimes Google displays the IP address of the server.  So I added meta robots noindex nofollow, and also disallow: / into robot.txt to remove the IP address version of the site from Google search console.  However, the IP address was still showing up in Google.  So I decided to remove completely all files under /var/www/html and left just the nginx html page. However, I still have the same problem. The IP address is always displayed in Google. I noticed than the meta description is ignored too. Google takes the old description.  Can you tell me if I did something wrong or what I have to do to remove this IP from google search. How long do we need to wait to see changes?
103296
How do I get my external IP address  from the Windows and Linux command line? On Windows, ipconfig shows an internal network IP address, but it does not show the external one.
53391
echo "1.1.1.1" | awk '/[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*/ {print $1}'   How can I filter IPv4 addresses in a script, and how can I filter IPv6 addresses.  I mean more precisely then this so the oneliner should only output VALID IPv4 addresses or another script to output only VALID IPv6 addr. In different languages? like: awk, perl?  ty!
2659
What is the most reliable and secure way to determine what page either sent, or called (via AJAX),  the current page.  I don't want to use the $_SERVER['HTTP_REFERER'], because of the (lack of) reliability, and I need the page being called to only come from requests originating on my site. Edit: I am looking to verify that a script that preforms a series of actions is being called from a page on my website.
33494
I have the following code making a GET request on a URL:  $('#searchButton').click(function() {     $('#inquiry').load('/portal/?f=searchBilling&amp;pid=' + $('#query').val());             });   But the returned result is not always reflected. For example, I made a change in the response that spit out a stack trace but the stack trace did not appear when I clicked on the search button. I looked at the underlying PHP code that controls the ajax response and it had the correct code and visiting the page directly showed the correct result but the output returned by .load was old.  If I close the browser and reopen it it works once and then starts to return the stale information. Can I control this by jQuery or do I need to have my PHP script output headers to control caching?
7625
You can reach this IP address  (if my computer is online). I want to assign a domain to it so I wonder how is that possible when I have no DNS? I do own my domain which is ".com". My IP is static.  Thanks
12690
If I check with , I can see my public IP. Is there something on the Ubuntu command-line which will yield me the same answer?
7523
How do I send a cross-domain POST request via JavaScript?  Notes - it shouldn't refresh the page, and I need to grab and parse the response afterwards.
20663
I want to show the IP address like below  lo : 127.0.0.1  eth0 : 192.168.5.123 eth1 : 192.172.0.212 wlan0 : 10.1.0.124   I'm able to print all IP address by ifconfig | awk '/inet addr/{print substr($2,6)}'. But it is only printing the IPs. Every system have their own interface names and addresses. So my script has to show their interfaces with respect to IP addresses.
62970
I'm looking for a way to change my public IP address. You know, the one that other websites see.   I know what I'm looking for is basically a proxy server, but I don't want to use a proxy for 2 reasons:  1) It slows me down. 2) See reason #1.  I'm using Ubuntu 9.10, I'm connecting to a public WiFi network (the ISP is Time Warner Cable). I'm getting my IP through DHCP.  Thanks for any help!
11975
On a personal network (LAN) one can simply grab an . If you choose the same IP address as an existing client, you get problems. There are companies like IANA and ICANN that are in charge of IP address bulks and sells them. But what stops you from just grabbing a random IP address? Is this built on trust? What if somebody were to grab an IP address and conflicting would occur. Is there any way of tracing that IP address to the location of the server using it?  Are companies that actually maintain the physical internet cables checking whether or not the clients connecting are using bought IP address blocks?
57248
Possible Duplicate:          I'm not sure if this question should be asked here or not by here it goes:  In html5 there is a function navigator.geolocation.getCurrentPosition which can locate your position. I've tested this function in IE, chrome, and firefox. While IE doesn't seem to be very accurate, firefox and chrome were able to locate my position with only 10 meters error. Considering that I'm using a laptop, connected to internet though a wimax router via wireless connection, and I'm sure my laptop doesn't have any GPS devices, do you have any ideas how are they finding my location.   I'm sure it's not based on IP since all sites working with IP just give results way off my actual position. and it doesn't seem to be some protocol which browsers use to ask my ISP since IE does not give same results as others.
123706
I am wondering if there is anything (software or hardware) out there that can do something I think I may have made up, Dynamic Static IPs. The idea is that when a new device connects to the local network this device/software acts as a DHCP server, if the device is new then it dynamically assigns it a new address that has never been used before and stores this MAC Address IP Address combination in a database, if the device's MAC is in the database the devices gets the same IP as before.  I am aware this is similar to sticky IP allocation but I don't want the IPs to stick for a while I want them to be superglued on for ever.  Bonus question: Is this possible using a Raspberry Pi running Raspbian on a network with around 100 devices? The RPi is already acting as the DHCP server and the router has this capability but it is turned off.  Many thanks in advance for any and all help offered!
68341
I need to be able to get at the full URL of the page I am on from a user control.  Is it just a matter of concatenating a bunch of Request variables together?  If so which ones? Or is there a more simpiler way?
87880
I did not find much info on the "response.getReturnValue" function and what it exactly returns. I understand that this is the function that must be used when a Client Side JS controller calls a Server Side action. The returned value must therefore be whatever the server returned.  My question: Is it a JSON? How can I inspect what is there inside, from the Web console?  So far I have been unsuccessful in doing so.  This is my Apex Controller:  public class CurrencyController { @AuraEnabled public static List&lt;CurrencyType&gt; getCurrencies() {     return [SELECT Id, IsoCode, LastModifiedDate FROM CurrencyType ORDER BY createdDate ASC]; } }   This is my JS Controller  ({   doInit: function(component, event, helper) {         var action = component.get('c.getCurrencies');  // Set up the callback var self = this; action.setCallback(this, function(actionResult) {  component.set('v.currencies', actionResult.getReturnValue());     console.log('currency data is:' + actionResult.getReturnValue()); }); $A.enqueueAction(action); } })   But what is logged is this:  currency data is:[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]  There are 34 Currency items in DB and there are understandably 34 items in this array. But what is there inside these objects? Why is there just two [object Object] when I am picking up 3 fields? I tried changing the number of fields and the log never changes.  I understand this is an extremely foolish question but I just am not able to get it. Please excuse my lack of lightning and Javascript knowledge.  Any insight is much appreciated.
56235
I have set up a local site under IIS 7.5 under port 900. to access it I should type localhost:900 in the address bar. I'm a little bit familiar with the System32\Drivers\etc\hosts file and I know I can define my custom name with IP adderss there. For example I can add: 127.0.0.1 MyLocalSite and whenever I type in http://MyLocalSite in the browser, The DNS resolves its IP as 127.0.0.1. Is there anyway that I can specify port number in that file as well? (e.g. 127.0.0.1:900 MySecondSite and the DNS resolves it correctly) I tried 127.0.0.1:900 and 127.0.0.1::900 with no luck.