Background:
I'm writing a daemon that makes outgoing TCP/IP connections. It will be running on machines with multiple (non-loopback) IP addresses. I'd like the users to be able to specify, in the daemon's config file, which IP address(es) to use for outgoing connections, or * to use all.
The addresses will be used in a rotation, each...
I'm wondering if there is an easy way to look up a user's local time zone in Rails using only an IP address. I don't want users to have to input their time zone themselves. Do I have to use JavaScript or is there a different way?
...
How can I get the same IP Address I get when I go to "http://www.whatsmyip.org/" using C++ and winsock library?
I know how to get the "127.0.0.1" and the router IP "192.168.1.103"...
But when I got to "http://www.whatsmyip.org/" I get "65.55.105.132"...
How can I accomplish this?
...
What is the most reliable way of obtaining the IP address of a remote client connecting to your website? Some options I've looked into are:
Server variables (such as REMOTE_ADDR in Apache), though this is usually the proxy address.
A Java applet, but IE (at least the one I'm using) seems to deny it.
The only other thing I'm thinking ...
Hi all,
I was wondering if it's possible to dynamically add subdomains that point to dynamic IP addresses, and how I would go about doing that? In other words, "how is dyndns/no-ip implemented" :-)? (The part I don't get is adding/changing the DNS entries... I understand how the client sends a packet every few minutes -___-). I can tell...
Does anyone know how many host bits are needed to guarantee that a subnet could have 9 usable hosts?
I was thinking about around 4, but I'm not sure. Can some shed some light on this?
...
Does anybody know how can I get IP address of client with RIA services. In WCF we have OperationContext for that. But it doesn't work with RIA services.
...
I would like to find out the ip address of the client that is visiting my web pages.
Content of JSP page:
<%
out.print( request.getRemoteAddr() + "<br>");
out.print( request.getRemoteHost() );
%>
Output:
0:0:0:0:0:0:0:1
0:0:0:0:0:0:0:1
...
I'm looking to try and block access from 2 IP addresses in PHP, preferably notifying them of their blocking.
Is there anyway I can do this or is it just not possible using PHP?
I've seen a Javascript version of doing it, but if the browser has Javacript turned off, then surely they'd be able to get around it.
thanks for any advice/hel...
How can I extract an IP address into a string? I can't find a reference that tells me how char sa_data[14] is encoded.
...
Hi guys,
Is there a way to collect the IP address of a client connected to your website through a proxy server?
The entire setup is an internal LAN and through the sysadmin, I have control over the proxy machine as well. I am using PHP5 for the website server side.
I tried $_SERVER['REMOTE_ADDR'] in PHP but this variable just stores t...
I have a subversion server on my local network and access it using the 192.168.1.x address. The problem is that when I leave my house and need to update svn on my laptop, I now have to use an external address. I've been using the svn relocate command to switch between external and internal addresses, but this is cumbersome. Does anyon...
Hi, i want to get the IP Address of the client in a TCPServer in Ruby. And (if it is possible) the MAC Address.
For example, a Time Server in Ruby, see the comment.
tcpserver = TCPServer.new("", 80)
if tcpserver
puts "Listening"
loop do
socket = tcpserver.accept
if socket
Thread.new do
puts "Connected from" + # HERE! How c...
For example I want to go to every coffee shop in my town that has WiFi and know what IP they are providing, so that later I could check anybody`s IP and know where is he. Is it possible to do so? What can be wrong with this approach, how can one trick me and show some other IP?
P.S. Just think it would be cool to have where are you serv...
There's probably some nice way of doing it (in Windows XP) in VBScript (or some other scripting language) with registry tweaks. Anyone know how?
...
I'm developing an application where it seems likely that people will attempt to hide what their client IP address is behind a proxy server.
Is there a unified way to get what the actual client IP Address is behind the proxy? Looking at the Ruby docs, it explicitly states that
request.remote_ip
and
request.remote_addr
both would ...
This is a really simple question, but I cannot find any mention of this, anywhere..
How do I get the client's IP address from in Sinatra?
get '/' do
"Your IP address is #{....}"
end
...
I'm trying to interact with a native DLL using P/Invoke, but it requires an in_addr struct parameter. I keep seeing many different kinds of definitions for it, but which is the best to use?
Also, how can I convert a C# IPAddress object to an in_addr struct?
...
You can choose any language. I am interested to know the simplest solution. How can you get your comp's IP and email it?
...
Suppose I am retrieving a url as follows:
string url = "http://www.somesite.com/somepage.html"
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
Is there a way I can see the IP address of the destination url?
Does it require a separate call?
Thanks
...