tagged [ip-address]

How do I determine the local host’s IPv4 addresses?

How do I determine the local host’s IPv4 addresses? How do I get only [Internet Protocol version 4](https://en.wikipedia.org/wiki/IPv4) addresses from `Dns.GetHostAddresses()`? I have the code below, ...

5 Mar at 13:47

How can I check if an ip is in a network in Python?

How can I check if an ip is in a network in Python? 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 ...

10 Feb at 22:30

Get client IP address in a WCF Service hosted using HTTPS 443 bindings

Get client IP address in a WCF Service hosted using HTTPS 443 bindings In one of my application in need client IP address in a WCF Service hosted using HTTPS 443 bindings. and i tried most of the post...

15 Jun at 09:59

Get IP address of visitors using Flask for Python

Get IP address of visitors using Flask for Python I'm making a website where users can log on and download files, using the [Flask micro-framework](http://flask.pocoo.org/) (based on [Werkzeug](http:/...

25 Jan at 16:42

How to sort list of Ip Addresses using c#

How to sort list of Ip Addresses using c# I've a list of IP addresses as follows I'm looking for such a way to sort this list to match the below order

17 Jun at 16:46

Find the IP address of the client in an SSH session

Find the IP address of the client in an SSH session I have a script that is to be run by a person that logs in to the server with [SSH](http://en.wikipedia.org/wiki/Secure_Shell). Is there a way to fi...

24 Jan at 16:0

Linq/Lambda OrderBy Delegate for List<string> of IP Addresses

Linq/Lambda OrderBy Delegate for List of IP Addresses Given `List ips = new List();` I need to sort the list of IP addresses in a logical order (i.e. "192.168.0.2" comes before "192.168.0.100"). Curre...

24 Jan at 17:47

Can I send webrequest from specified ip address with .NET Framework?

Can I send webrequest from specified ip address with .NET Framework? I have a server with multi ip addresses. Now I need to communicate with several servers with http protocol. Each server only accept...

2 Jul at 20:31

How can I get the clients IP address from HTTP headers?

How can I get the clients IP address from HTTP headers? I understand it's a standard practice to look at both these variables. Of course they can easily be spoofed. I'm curious how often can you expec...

10 May at 16:3

Is there native .NET type for CIDR subnets?

Is there native .NET type for CIDR subnets? It's simple enough to code up a class to store/validate something like `192.168.0.0/16`, but I was curious if a native type for this already existed in .NET...

22 Nov at 00:6

How to determine if a string is a valid IPv4 or IPv6 address in C#?

How to determine if a string is a valid IPv4 or IPv6 address in C#? I know regex is [dangerous](http://www.perlmonks.org/index.pl?node_id=221512) for validating IP addresses because of the different f...

28 Apr at 17:36

How to get the IP address of the server on which my C# application is running on?

How to get the IP address of the server on which my C# application is running on? I am running a server, and I want to display my own IP address. What is the syntax for getting the computer's own (if ...

28 Jul at 21:22

Two equal IPv6 IPAddress instances return different GetHashCode results

Two equal IPv6 IPAddress instances return different GetHashCode results I have two clients that create `IPAddress` instances from the `byte[]` and send it to the server over WCF (using `DataContractSe...

11 Feb at 17:36

Maximum length of the textual representation of an IPv6 address?

Maximum length of the textual representation of an IPv6 address? I want to store the data returned by `$_SERVER["REMOTE_ADDR"]` in PHP into a DB field, pretty simple task, really. The problem is that ...

11 Apr at 21:14

How do I get the network interface and its right IPv4 address?

How do I get the network interface and its right IPv4 address? I need to know how to get all network interfaces with their [IPv4](http://en.wikipedia.org/wiki/IPv4) address. To get all network interfa...

25 Mar at 13:41

Specify the outgoing IP address to use with TCPClient / Socket in C#

Specify the outgoing IP address to use with TCPClient / Socket in C# I've a server with several IP Addresses assigned to the network adapter. On that server is a client app to connect to another serve...

26 Apr at 22:56

Binding an IP address just works for the first time

Binding an IP address just works for the first time I want to make a web request from one of available IP addresses on server so I use this class: ``` public class UseIP { public string IP { get; pr...

24 May at 18:32

Adding firewall rule on Windows Phone 8.1

Adding firewall rule on Windows Phone 8.1 I really don't know how to look for what I am trying to achieve. I will add two images to show you in a better way what I am doing here. [](https://i.stack.im...

How to get a user's client IP address in ASP.NET?

How to get a user's client IP address in ASP.NET? We have `Request.UserHostAddress` to get the IP address in ASP.NET, but this is usually the user's ISP's IP address, not exactly the user's machine IP...

1 May at 09:52

Resolving an IP address from DNS in C#

Resolving an IP address from DNS in C# I am trying to make a TCP socket connection to an IP address. I can do this by directly parsing an IP address like this: ``` IPAddress ipAddress = IPAddress.Pars...

6 Oct at 03:44

How can I get the IP address of a (Linux) machine?

How can I get the IP address of a (Linux) machine? This Question is almost the same as the previously asked [How can I get the IP Address of a local computer?](https://stackoverflow.com/questions/1222...

6 Dec at 04:44

How to extract IP Address in Spring MVC Controller get call?

How to extract IP Address in Spring MVC Controller get call? I am working on Spring MVC controller project in which I am making a GET URL call from the browser - Below is the url by which I am making ...

6 Apr at 08:6

Resolve host name to an ip address

Resolve host name to an ip address I developed a client/server simulation application. I deployed client and server on two different Windows XP machines. Somehow, the client is not able to send reques...

18 Jun at 12:49

IP Address Logging for Lots of Models in Existing Application

IP Address Logging for Lots of Models in Existing Application I have an existing app that has many, many models. I'd like to log the IP address of the user that created them with the primary purpose b...

25 Jan at 22:3

Validating IPv4 addresses with regexp

Validating IPv4 addresses with regexp I've been trying to get an efficient regex for IPv4 validation, but without much luck. It seemed at one point I had had it with `(25[0-5]|2[0-4][0-9]|[01]?[0-9][0...

10 May at 08:50