Currently I use the following code to retrieve the IP address of the local workstation...
strIPAddress = System.Net.Dns.GetHostEntry(strComputerName).AddressList(0).ToString()
This is fine for the Windows XP workstations. However, in Vista and Windows 7, this returns the IPv6 address which is not used at all. Is there a method of setting this to…
Hi
I want to calculate the broadcast address for e.g
-IP 192.168.3.1
-Subnet 255.255.255.0
=192.168.3.255
in C.
I know the way (doing fancy bitwise OR's between the inversed IP and Subnet), but my problem is I come from the green fields of MacOSX Cocoa programing. I looked into the source of ipcal, but wasn't able to integrate it into my code…
Hi,
I want to find IP address in an application. I am able to find it. But, problem is, it works fins in iphone os 2.0 or so. But, in iphone os 3.0 it is giving me a warning:
warning: no '+currentHost' method found
warning: (Messages without a matching method signature)
I am using this code, and it works fine with os version 2.0.
…
hello Everyone
well i am making an application of IP camera for Blackberry all models.
i have gathered all the information regarding coding.
now i just wanted a bit of ur help. please guide me through some of the APIs for java through which i could implement live Ip camera video streaming in blackberry.
and also some of the…
Question:
When I convert the IP address 192.168.115.67 to a number, is it done like this:
192*256^3 + 168*256^2+115*256^1+67*256^0 = 3232265027
or like this:
192*256^0 + 168*256^1+115*256^2+67*256^3 = 1131653312
I find both variants online, and frankly it doesn't matter as long as reverse it according to the conversion…
I can't get DHCP to assign IPto my wireless devices.
My network config is as follows:
Nanostation5
Linksys WRT350N, which is connected with Nanostation via its INTERNET port.
Nanostation:
LAN IP Address: 192.168.1.20
WLAN IP Address: 192.168.0.79
Network Mode: Router and is getting its IP via DHCP from my ISP…
We have multiple sites in IIS with different IP addresses. This is cool, want different IPs to all go to this server and use the proper site. However I discovered an issue that when the server makes an outgoing connection, I cannot predict which IP it will use. I had to have one client add ALL the IPs to their…
We have multiple sites in IIS with different IP addresses. This is cool, want different IPs to all go to this server and use the proper site. However I discovered an issue that when the server makes an outgoing connection, I cannot predict which IP it will use. I had to have one client add ALL the IPs to their…
I'm adding GeoIP tracking to WCF Web Service using MaxMinds' GeoIP Lite Country. All works well for their IPv4 database but they don't give any samples to calculate an IPv6 IP Number. I've contacted them and they said to use a search engine.
Anyone have a sample they're willing to share? Any language will do.
I'm trying to figure out whether I should set up a honeypot system with a fake phpMyAdmin (site gets hits all the time with people spidering for insecurities with that app).
My thought was to create a honeypot php script that would mimic a phpMyAdmin login, and then blacklist ips that hit that url (and aren't…
Geeks the world over know their local host as 127.0.0.1, but why is that specific address, of all available addresses, reserved for the local host? Read on to delve into the history of local hosts. Image by GMPhoenix; available as wallpaper here. Today’s Question & Answer session comes to us courtesy of…
I have two Ubuntu servers with each having their own ip addresses.
Let's call them server1 and server2, having respectively ip 1.1.1.1 and 2.2.2.2
I have a nginx running on server2. The sole purpose I want server1 to have is to redirect all incoming http (so port 80) requests to server2 without clients…
Hello!
I have a database table which contains an unsigned integer field to store the visitor's IP address:
`user_ip` INT(10) UNSIGNED DEFAULT NULL,
Here's the snippet of PHP code which tries to store the IP address:
$ipaddr = $_SERVER['REMOTE_ADDR'];
if ($stmt = mysqli_prepare($dbconn, 'INSERT INTO…
I've implemented the concepts shown here; http://wiki.unity3d.com/index.php/Simple_TCP/IP_Client_-_Server outside of unity and it works. (though i had to create the TCPIPServerApp from scratch as i could not find the base project anywhere).
I have some general questions on how to use tcp/ip properly…
I have a few questions, please help:
Fist, I can access google search just by typing
http://74.125.224.211
because this is the ip address returned by nslookup.
However, I could not do so with ip addresses returned from www.yahoo.com. How do I go to yahoo search page by its ip ?
Another example,…
Lately I've been tracking a spammer on craigslist. I recently discovered that he's added a new technique to his arsenal, he registered a whole bunch of domain names but they all resolve to the same ip address.
Is there any way to take an ip address and get a list of all the domain names that resolve…
An interesting question was asked to me and I did not know what to answer.. So I'll ask here.
Let's say I subscribed to an ISP and I'm using cable internet access. ISP gives me a public IP address of 60.61.62.63.
What keeps me from changing this IP address to, let's say, 60.61.62.75 and mess with…
My localhost's IP address/port is being blocked from accessing a certain site. The blocking is occurring, but I don't know where.
The question is : does IP blocking possibly occur not only at the endpoint, but also at any intermediate server along the way?
Take a tracert, for example. Could the…
I ran across a site that talked about routing all cients requesting by IPto a "dead end." The clients accessing the site via ip it claimed were typically automated exploit tools and bots. Legitimate users type in the web address by it's domain question.
With this context in mind, I don't really…
I run a large bulletin board and I get spammers every now and again. My moderation team does a good job filtering them out but every time I IP ban them they seem to come back (I'm pretty sure it's the same person on some occasions, as the post patterns are exactly the same as are the usernames)…
Hi All,
Let say I have these IP addresses on my server:
170.120.210.209 gateway
170.120.210.210 server IP
170.120.210.211
170.120.210.212
170.120.210.213
170.120.210.214
170.120.210.215
170.120.210.216
170.120.210.217
170.120.210.218
170.120.210.219
170.120.210.220
170.120.210.221…