Click here to Skip to main content
15,886,518 members
Everything / IP

IP

IP

Great Reads

by CdnSecurityEngineer
Spoofing an IP is hard
by RiniBoo
Automatically update your dynamic IP address, supports multiple DNS Providers and IpCheckers. Project was started to update Amazon AWS Route 53.
by Wessel Beulink
IPv6 support enhances Azure Gateway, vital for efficient network management
by Giovanni Scerra
A simple and easily extensible IP geo-fencing engine

Latest Articles

by Wessel Beulink
IPv6 support enhances Azure Gateway, vital for efficient network management
by Giovanni Scerra
A simple and easily extensible IP geo-fencing engine
by pdoxtader
A multithreaded server class that accepts multiple connections from a provided client class. Each client can send and receive files and text (byte data) simultaneously along 250 available channels.
by RiniBoo
Automatically update your dynamic IP address, supports multiple DNS Providers and IpCheckers. Project was started to update Amazon AWS Route 53.

All Articles

Sort by Score

IP 

25 Jul 2014 by CdnSecurityEngineer
Spoofing an IP is hard
12 Apr 2013 by Manfred Rudolf Bihy
You're trying this the wrong way round. The server should have one socket (IP-adress and port) on which it accepts connections and then it will spawn a separate thread for each client that connects. If you were to do it your way you'd need either 40 IP adresses and listening on one designated...
26 Oct 2015 by F-ES Sitecore
You can only get the IP of the machine that made the request, that may or may not be the actual client. If the client accesses your site via a proxy then you'll get the proxy address. There is nothing you can do about this. Google "asp.net get client ip" and you'll find this is a very...
15 Dec 2010 by OriginalGriff
You can't do it.Remember, the IP is assigned by the ISP, and in most cases is not fixed - it is a dynamic IP address. What this means is that the IP address "78.145.xxx.xxx" is currently assigned to me, but if I disconnect my modem, and reconnect it could be assigned to someone 200 miles...
26 Oct 2010 by @nuraGGupta@
Hi,I want to list all the sub domain names listed on an IP. Using the tools available on the internet (http://www.reverseipcheck.com/index.php?id=1), I am getting correct info. But my program is returning the error given below :SocketException caught!!!Source : SystemMessage : The...
25 Mar 2011 by willempipi
does my computer have the same ip address all the time, or does it change it dynamically?Depence on your provider, most providers use a DHCP that will reset once a few weeks, giving you a different IP adress. But some don't, most of the time this is a special internet-offer for...
14 Sep 2012 by JF2015
Try this code:using System.Net;IPAddress[] localIPs = Dns.GetHostAddresses(Dns.GetHostName());foreach(IPAddress address in localIPs) MessageBox.Show(address.ToString());
11 Mar 2013 by Richard MacCutchan
The client IP address is obtained from the socket returned by the accept() function[^]. Your code is trying to get it from the listening socket.
11 Nov 2013 by OriginalGriff
The "s" at the end of IPInterfaceProperties.DnsAddresses is a clue that there may be more than one, and the MSDN documentation backs that up: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipinterfaceproperties.dnsaddresses(v=vs.110).aspx[^]It's a Collection: just...
24 Feb 2014 by OriginalGriff
Have a look here: Retrieving IP and MAC addresses for a LAN[^]
19 Dec 2015 by RiniBoo
Automatically update your dynamic IP address, supports multiple DNS Providers and IpCheckers. Project was started to update Amazon AWS Route 53.
26 Oct 2015 by OriginalGriff
You pretty much can't - and it wouldn't be a lot of use to you anyway, as nearly all LANs use 192.x.y.z addressing. You can't use it to access the client, because it will be assumed to be a local address within your server LAN.And client IP's don't go any further than the router anyway for...
8 Sep 2017 by OriginalGriff
We can't tell you: you should talk to the people who created it - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back! SDK support is up to them, not us!
4 Apr 2018 by Jochen Arndt
Your code will not work because the image data might contain the JPEG markers too (here: the FF D9 end of image marker). So you have to write a parser that gets also the segment length for all non stand alone markers. When such a segment is processed, pass all bytes of the length without...
27 Oct 2010 by dmageiras
check out this:http://www.codeproject.com/KB/IP/ListNetworkComputers.aspx
15 Dec 2010 by Gandalf_TheWhite
I want to get zipcode of the particular ip address.Already search enough web for this. What I found is APIs which gives country from IP and there are some APIs for same purpose however they are not free.If anyone have implemented something like this or any free APIs are there then it will...
28 Dec 2010 by #realJSOP
Didn't the camera come with documentation that gave examples of accessing the camera?have you seen this CodeProject article?Camera Vision - video surveillance on C#[^]
25 Mar 2011 by OriginalGriff
To add to the other responses, if you do not specify - and most people don't - then the ISP will assign a dynamic IP address - but that isn't the IP of your PC. It is the IP of your modem. If you have a number of people sharing the same internet connection (normal for a work place) then they...
26 Mar 2011 by Wendelius
The error message says it all, you have to deliver a parameter, since you have defined that NetworkInterfaceComponent must be passed to the method.private void button1_Click(object sender, EventArgs e){ ShowIPStatistics(); //
26 Mar 2011 by Henry Minute
Well you are getting it because you make a call to ShowIPStatistics() without any parameters.private void button1_Click(object sender, EventArgs e){ ShowIPStatistics(); //
26 Mar 2011 by Henry Minute
The NetworkInterfaceComponent is an enumeration. It has two possible values IPv4 or IPv6.Therefore you have to use either:private void button1_Click(object sender, EventArgs e){ ShowIPStatistics(NetworkInterfaceComponent.IPv4);}or:private void button1_Click(object...
15 Jun 2012 by Reishabh_Saxena
Hi all,I want to get the client IP address in a WCF Service hosted using HTTPS 443 bindings. I am getting the Host IP address by below code.private string GetIP(){ OperationContext context = OperationContext.Current; MessageProperties prop = context.IncomingMessageProperties; ...
15 Jun 2012 by Stephen Hewison
There doesn't appear to be a reliable way to get the client IP for a WCF call using .Net 3. In .Net 3.5 you can and it's done exactly how you've described in your question.If your client IP is on the same network you should be able to get the IP. But if it's not it's important to remember...
5 Sep 2012 by Sandeep Mewara
Based on similar discussion here[^], it looks like following should do:function getip() { if (isSet($_SERVER)) { if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) { $realip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) { ...
7 Oct 2012 by Sandip.Nascar
As per as I know, wireshark is written in C not c#. Pardon me, if I am wrong.Here is the link, you can get the sourcehttp://www.wireshark.org/download/src/[^]cheers
13 Feb 2013 by phil.o
On your router, you should set a NAT (Network Address Translation) rule of TCP port 80 to your internal server.It means that every request on your public IP address on TCP port 80 should be forwarded to your internal server IP address ; from here people will be able to access your website...
16 Sep 2014 by George Jonsson
Not sure this will solve your problem, but when you create the event handler for the NewFrame eventVideoStream[i].NewFrame += new NewFrameEventHandler(VideoStream_NewFrame1);you will end up using the same method for both cameras.This means that you need to make use of the sender parameter...
20 Nov 2015 by OriginalGriff
There are ways...but a timer is the best solution.The problem is that in order to update a textbox regularly, you need to have some indication that it should be changed - and unless you can get a "change of state" event generated by the hardware that your app can handle your only options are...
9 May 2016 by OriginalGriff
Don't trust IP based Geolocation: Using IP based Geolocation - and why it's pretty much useless.[^] - it's easy to use, but it's not very accurate at all. The link gives code that will retrieve the data in any form of C#.
27 Feb 2017 by Jochen Arndt
There may be two reasons for such behaviour.The first is that the page is not requested again but got from the cache. This can be only avoided by clearing the cache (see How to clear the cache when your application hosts a WebBrowser control in Visual C# .NET[^]).The second reason might...
19 Aug 2017 by RickZeeland
I think you need to purchase a domain name, e.g. from Google or another provider Google Domains – Google[^] An alternative might be to use the ip address your ISP gave you, see: How to Find Your Private and Public IP Addresses[^]
4 Apr 2018 by KarstenK
For sending over the network the splitting of the binary data is enough. If you want smaller jpeg than you must use higher compression or split the decompressed picture in sub pictures and than compress. The article CXImage shows these techniques.
22 Jul 2018 by Jochen Arndt
It looks like you want to detect the WAN IP address assigned to the router by your ISP (Internet Service Provider). The common method(s) you have already tried partially are connecting to a server that returns the required information. That may be either a specific service for such purposes...
4 Mar 2019 by OriginalGriff
You can't. It's not a "real" IP address, it's the IP address of the point of contact to the internet, which for a mobile would be up to the phone company to provide and which will probably vary as the phone moves around networks and connects and disconnects. It will also be likely to be shared...
22 Mar 2024 by Wessel Beulink
IPv6 support enhances Azure Gateway, vital for efficient network management
1 Dec 2009 by brclancy111
I am working on a remote GM Tool's Server, and I need to know how I can disturb a connection between a client, and a game server for a period of time, so I can set settings on their account. How... if it could be done...?"Disturbing Client Connection via IP" X|
1 Dec 2009 by Maxim Langman
You have to do it from the server, I mean, the code shall be added to the server (if you wrote the server). This code will end a session for a connected socket with some logic. This logic might be any trigger that came through the net from admin/you/anyone who knows.Otherwise you cannot...
22 Feb 2010 by Herboren
I understand that in some cases this question would regard programming but in my case it poses as some quality. I sort of understand how IP works, its octets and its bits, the Network and the Host. I understand that subnetting helps break down the larger amounts of hosts into smaller manageable...
22 Feb 2010 by Richard MacCutchan
The 255.255.255.0 part is just a mask to tell the IP software how many bits in the address represent your subnet. It is possible to split large lans into subnets with masks like 255.255.128.0 etc. All the leftmost bits are used to isolate the subnet portion, and the unmatched bits represent the...
6 Apr 2010 by dbtech8705
Does anyone have a script on emailing a public IP address whenever it changes, for WINDOWS? Possibly something that I can set up a schedualed task to run.I am not a coder/scripter but I would like to get into it for automation purposes. Im a smart guy and I adapt well with new concepts but I...
7 Apr 2010 by dbtech8705
Someone wrote this up for me and it works great as a batch file. You just need to modify the email line and make sure you have cURL.exe and Blat.exe installed on your machine(cURL is used to grab the public IP off of the website and Blat is used to send the email). I hope someone finds this...
23 May 2010 by Michel Godfroid
The real Ip Address of a client is never accessible. What you'll see is the(NAT) address of the Internet access point. The client IP address is on a private network, so it has no meaning on the internet.
26 Jul 2010 by Zaheer Alam
Hi,I have built a C# client-server application. The client connects to the server running on a remote machine by using its IP Address. I have used System.Net.Socket.TCPClient for client and System.Net.Socket.TCPListener for the server.The application is wokring fine for normal IPv4...
26 Jul 2010 by Roger Wright
There's a sample from Microsoft here[^] that gives a clear solution you might use as a reference. One thing I note is that the article is for .Net 4. It's possible that previous versions of the TCP-related methods don't work with the IPv6 standards, and you may be using an earlier version for...
1 Sep 2010 by asaffff496818
Well thats what I got...fe80::b450:c989:5f9b:381c%12fe80::108e:12d2:b281:ca66%17192.168.0.1782001:0:4137:9e74:108e:12d2:b281:ca66what is it?and my ip not exist there...
31 Aug 2010 by asaffff496818
Hi all,Does anybody know how to get the IPAddress of the LaptopI have a little code that works very well in my computer stationary, but it doesnt works in the Laptophere is the code...IPAddress [] IPAddr = DNS.GetHostByName(Dns.GetHostName()).AddressList;string ip =...
31 Aug 2010 by Per Söderlund
It is in there already,I think it is different from computer to computer what place in the array your standard ip is (192.168.1.1).Loop through it and you will find.IPAddress[] IPAddr = Dns.GetHostEntry(Dns.GetHostName()).AddressList; for (int i = 0; i
31 Aug 2010 by Peter_in_2780
If you are using the default setup (using DHCP), your laptop doesn't have an IP address until it's actually connected to a network. If you type "ipconfig /all" at a command prompt you can see all your network connections. That way, you can see if there is anything for DNS to give you.
25 Oct 2010 by EnComp_MAmin
How to get IP Addresses of other computers in a network using C#.net
25 Oct 2010 by Dalek Dave
Try this...using System.Net.NetWorkInformation;IPGlobalProperties network = IPGlobalProperties. GetIPGlobalProperties();TcpConnectionInformation[] connections = network. GetActiveTcpConnections();
25 Oct 2010 by Nish Nishant
Use Dns.GetHostEntry
27 Oct 2010 by EnComp_MAmin
I want write a program with c#.net which is similar to netsupportIn the first laoding want have the all existing systems of network and show it in listviewNow I don't know how i achieve the lists of the systemsA small example of the...
2 Nov 2010 by RECSEN
Try this:using System;using System.Diagnostics;using System.IO;using System.Collections.Generic;class Program{ static void Main () { Process proc = new Process(); proc.StartInfo.FileName = "net.exe"; proc.StartInfo.CreateNoWindow = true; ...
2 Nov 2010 by RECSEN
http://www.codeproject.com/KB/IP/ListNetworkComputers.aspx[^]
29 Nov 2010 by Nagy Vilmos
Here's some java code for you:Random rn = new Random();for (int i = 0; i++, i
29 Nov 2010 by Daniel Grunwald
Here are 20000 different IP addresses and port numbers:127.83.0.1, Port 1127.83.0.2, Port 2127.83.0.3, Port 3...127.83.0.255, Port 255127.83.1.0, Port 256... (I am sure you can fill in the pattern)127.83.78.31, Port 19999127.83.78.32, Port 20000All of those IPs are valid...
28 Dec 2010 by oxuyan
Hi,I want to get a jpeg stream from IP camera Sanyo VCC-HD4600P in C#.Unfortunately I cant do it.link http://ip/liveimg.cgi show single image in Browserlink http://ip/cgi-bin/live2.cgi show live-view in BrowserI try to use AForge.Net JpegStream class, but it's don't get jpegs...
21 Mar 2011 by ravib21
Hello,I am developing a web application, in which i want to use latitude & longitude of visitors by IP address.I've searched many times but still I'm not success.do any one knows the website name, which can provide city database with latitude & longitude... or any web service (API)...
21 Mar 2011 by soni uma
Hi,Use thisThis[^]you have to pass ip address and you will get a xml as return..
25 Mar 2011 by noviceTaken
does my computer have the same ip address all the time, or does it change it dynamically? I have a web site which need to identify the users from the information derived from the computer they are looging into the site. Is it posssible to do this? Please advise me. :(
25 Mar 2011 by Dalek Dave
Depends on your ISP and your settings.You can have the option to have a dynamic IP, (recommended), or a static one.Everyone has their preferred option.
26 Mar 2011 by Sergey Alexandrovich Kryukov
Stop posting anything as Answer!Stop repeating Questions!I already answered your follow-up Question: you're trying to pass a type instead of variable.Nobody will explain you the difference is short terms. You need to learn at least most basic ideas of programming. You cannot develop...
10 Apr 2011 by Michel [mjbohn]
It's a bit hard to guess how you implemented your protocol. I think you should have at least something like List or just a simple List.Having this you can easily iterate through your list and do your tests inside a try/catch.Same applies to your data. As long...
22 Jun 2011 by Member 7974265
I have made a Win32 Forms Application but am unable to see the items in the dialog editor block of the toolbox.I want to use the IPAddress Control tool which is available in the dialog editor. Does it require loading some extra dll files?I am using Visual Studio 2005 Professional Edition in...
7 Aug 2011 by tylerschmidt
Hey, we need to implement license protection for a .NET program. I did a quick search on google and came across a few companies. We downloaded Quick License Manager by Soraco and it seems to fit the bill. Does anyone have any experience with Quick License Manager and Soraco?
8 Aug 2011 by Kim Togo
I do not think you can get this detailed info on a NetworkAddressChanged event.What about get all the detailed when your program starts and when you receive NetworkAddressChanged event, get all the detailed again and then compare to find what has changed.
7 Aug 2011 by Sunil P V
Hi All,I would like to know if there is a notification mechanism in C# for IP address change for a particular network interface. I know that NetworkChange.NetworkAddressChanged can be made use to detect in IP change but I am looking for micro details like IPv4/IPv6, DNS and gateway IP...
22 Aug 2011 by Herman<T>.Instance
with a little search on this forum: how to assign public to private ip address[^]
21 Sep 2011 by Yas_EG
I need to find out the location (address or country) of any website given its url. Is there any FREE website, API, or code that can be used to find out this data?I want the solution to provide a way with UNLIMITED number of look ups.I'm using C#.Thanks in advance
21 Sep 2011 by Morgs Morgan
This tutorial will get you a country name from an ip address:Optimized IP to ISO3166 Country Code Mapping in C#[^]
17 Jan 2012 by sesha Fan
hi, allHow to get and set "ip address", "submask", "gateway". in windows and linux.Some source code or links will be appreciated.some point sure be considered.1、More than one newwork card.2、If IP is got using DHCP, can this IP be modified ?3、When ip is set, how to take effect...
24 Feb 2012 by krishn2011
Tell me the name of website which show the ip's addrs of last few user's that came on website ?i want to take the ip of the user's in user of some use.thanks in advance..
16 Aug 2012 by dhl_hh
Hey,I was wondering cause i don't know how to start on it. A point in the right direction would be much appreciated :) . Say i have two ip's in the following format,Ipv4-192.168.168.100/24IPv6-2620: 0:860:2::/64I want to get he minimum and maximum ip range of the above via c#. It...
18 Feb 2020 by Member 7999536
HiHow Do I get the Ip address of my machine in PHP code ?
14 Sep 2012 by Kuthuparakkal
1.1 Framework:StringBuilder sb = new StringBuilder();string strHostName = Dns.GetHostName();IPHostEntry ipEntry = Dns.GetHostByName(strHostName);IPAddress[] addr = ipEntry.AddressList;for (int i = 0; i
14 Sep 2012 by Mr. Mahesh Patel
hi deartry below code public void getLocalIPAddress(){ try { string sHostName = Dns.GetHostName(); IPHostEntry ipE = Dns.GetHostByName(sHostName); IPAddress[] IpA = ipE.AddressList; for (int i = 0; i
16 Sep 2012 by Dave Kreskowiak
You would have to write your own firewall to do this. You would also need to write a filter driver to insert into the network stack so you can pick out all the inbound traffic and get the addresses you're interested in.Oh, and you'll probably need to write some heuristics into your "filter"...
18 Sep 2012 by Rajesh Kuramdasu
Try this link SharpPcapThis is a dot net based application which can help packet analysis.
20 Sep 2012 by Rajesh Kuramdasu
In the below code, I am trying to filter all the UDB packets. // Retrieve the device list CaptureDeviceList devices = CaptureDeviceList.Instance; // Picking the first device on the machine ICaptureDevice device =...
4 Nov 2012 by footballpardeep
I have created an app using TCP in c#. In which there will be one server and other will be clients. Every time when clients need to connect to server,they will require server ip address and port on which it is listening. Is there any way to make that ip static ?To solve this problem , i was...
4 Nov 2012 by OriginalGriff
You can get the mac addresses and IP addresses together - have a look at this: Retrieving IP and MAC addresses for a LAN[^]But that is a very clumsy solution.Can I suggest that either they access via the PC name, or get the IP from the PC name? The latter is really simple: ...
24 Dec 2012 by chandinig
Hi all, I have two instruments with two ip addresses.i have to show its status like(ex:In G-mail when we logged into account it shows our status with green colored radio box).can any one help me show the status of ipaddress(connected or disconnected) in vb programming.
13 Feb 2013 by unscathed18
Hello everybody,I've created recently a moodle which is properly working on localhost, but I don't know what should I do if I want to make it work from without.I go to "MyIP" website and I check my current external IP.Then I put it on a browser and put it on a browser like...
11 Mar 2013 by Member 8589499
I created a client server program in c++ console. i run the server and then run the client. The server is not receiving the clients ip address. here is the server code:#include "stdafx.h"#include #include #pragma comment(lib, "ws2_32.lib")using namespace...
12 Apr 2013 by ayesha hassan
I am working on udp server/client application. I want my single server to handle 40 clients at a time. For this, I want to create 40 dedicated threads, each dedicated for one single client. Since there are 40 threads one for each client, I want to create 40 dedicated sockets as well. But the...
16 Jun 2013 by _Maxxx_
There is no way to do it reliably with the sort of resolution you're asking.With cell phones it is in principal possible due to the use of Cell Ids on cellphone towers - but with a laptop you could be on Wifi or wired network or tethered to a phone - so the best you could probably get would...
16 Jun 2013 by Aydin Homay
HiWhen we used the internet we get the IP Address but it can be valid or invalid address, thus if you want to the find, position of your laptop with the IP address you need to identify ISP(Internet Service Provider) with the this IP Address,Although we assume our IP Address is the valid,so...
11 Nov 2013 by Luiey Ichigo
Hi all,I need some reference to get the full TCP/IP details. Currently I'm able to get the IP Address, Subnet Mask and Gateway. But I'm not able to get the DNS. The value from DNS is able to get but to display is failed. Below are my code. I'm running on VB.Net Windows Form Application 2008....
3 Dec 2013 by fierascu.mihaela
Hi,I have a website which direct the users to a Joomla 2.5 page, but I would like to keep my content (article) private and to be accessed just by authorized users (by ip) without their log in.I have already searched a plugin, but I just found solutions with log in.Can you suggest me...
5 May 2014 by Sergey Alexandrovich Kryukov
First of all, you cannot use ports 1 to 4. Port numbers are not completely arbitrary, many of them are reserved. The ultimate authority for them is IANA (http://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority[^]); and the port assignments are maintained here:...
17 Jun 2014 by Muthu Nadar
Friends,I have tried getting location detail using IpAddress and successfully got City and country details using below api'shttp://www.geoplugin.net/json.gp?ip=@yourIPAddress //Returns Jsonhttp://api.hostip.info/?ip=@yourIPAddress //Returns XMLNow I wanted to get the company /...
17 Jun 2014 by OriginalGriff
You can't.It's possible to get some information (which may or may not be related to the company owning the website) about the company that owns the domain that hosts the IP: http://dotnet-snippets.com/snippet/whois-lookup/668[^]But...many web hosting companies will host loads of different...
3 Jul 2014 by Member 10923081
Hello, I am a Japanese high school girl. My English is poor. I am using the translation of Google. Please understand when i use the strange vocabulary. I'm currently preparing a national convention. I would like to see in Android in real time IP camera video.IP camera uses a product that...
3 Jul 2014 by leon de boer
There are some formats of streaming Android does not support notably many in the MPEG4 class because they are simply to processor intensive. Most IP cameras and video servers offer H.263 or H.264 as an option and they should work on most andriod systems.Here is the Android support...
15 Jul 2014 by Member 10947632
Hi, I have following issue in calculating the number of available subnets (or hosts) in network. For example the main subnet is /24 (255.255.255.0) which contains two /25 (255.255.255.128) or four /26 (255.255.255.192).So if the one node is already being used there will be only one /25 or...
5 Aug 2014 by Member 10993596
201\.45\.33\.[0-5]How do I include all from endings 0-255? Do I just go 201\.45\.33\.[0-255]?