This snippet converts a CIDR notated IP address to a range of IP addresses in decimal, dotted notation. Eg.: 192.168.1.255/31 => 192.168.1.254 - 192.168.1.255

Member Avatar
Member Avatar
+0 forum 2

I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before. The script is just being used to test the ability to capture/display an IP address; this will later be used in a larger project: <!DOCTYPE html> <html> <body> <h2>THIS IS A PHP PAGE (with HTML)</h2> <?php echo $_SERVER['SERVER_ADDR']; ?> </body> </html> As I stated, it worked the other day, displaying ::1 on my local machine; I loaded the same script to an online, test server and it worked there correctly, returning my ipv4 address. …

Member Avatar
Member Avatar
+0 forum 2

I have been using my HOSTS file for years to dummy out ad sites by adding entries like 127.0.0.1 www.ukbanners.com A while back I installed [Unchecky](https://unchecky.com/), a program which automatically unchecks all of those software extras that some installers like to enable by default (like McAfee). Today I noticed nthat Unchecky added entries like 0.0.0.0 media.opencandy.com to the end of my HOSTS file. A google search resulted in conflicting and ambiguous information as to the use of 0.0.0.0. The most complete explanations (in geek-speak) are usually of the "it depends" variety. Can anyone explain, in non-technical terms, the difference between …

Member Avatar
Member Avatar
+0 forum 4

Hi All, I am looking for a design approach to implement TCP socket server which is going to serve requests based on multiple ports. (1) port1 : dedicated for video streaming (2) port 2: dedicated for audio streaming (3) port 3: dedicated for data streaming. In above scenario do i need to create single server to take care with multiple port request or diff-2 server needs to be created for diff-2 request based on port configuration. Is there any design strategy where connection pool of sockets can be created to serve above mentioned port based requests? i appreciate if any …

Member Avatar
Member Avatar
+0 forum 8

Any one have idea for best way to advertising? share your idea here

Member Avatar
Member Avatar
+0 forum 10

hi, I need a software to change my ip address.Please can you tell me about any software?

Member Avatar
Member Avatar
+0 forum 3

Hello, There is a post request coming to my portal and I am fetching IP address from the post request on my portal landing page(INDEX view in MVC) and saving in DB table. below is the code to fetch IP address. string Device_IP = ""; if (!string.IsNullOrEmpty(Request.ServerVariables["HTTP_VIA"])) { // ' using proxy // ' Return real client IP. Device_IP = Convert.ToString(Request.ServerVariables["HTTP_X_FORWARDED_FOR"]); } else { // 'not using proxy or can't get the Client IP // 'While it can't get the Client IP, it will return proxy IP. Device_IP = Convert.ToString(Request.ServerVariables["REMOTE_ADDR"]); } It is fetching IP address on my side but …

Member Avatar
+0 forum 0

There are some tutorials below, will it working for parked domain, or only for addon & subdomain? http://www.ndimensionz.com/kb/dedicated-ip-to-parked-addon-domain-in-cpanel/ http://www.prajith.in/how-to-assign-a-dedicated-ip-to-a-sub-domain-or-add-onpark-domain/ http://thelinuxfaq.com/183-assign-dedicated-ip-to-subdomain-parked-domain-addon-domain-in-whm there is also a thread asking this in 2008 https://forums.cpanel.net/threads/parked-domain-on-different-ip-address.93537/#post-424165 : The main domain does have its own IP Address, but I need the domain that is parked on the main domain to also have its own IP Address. So for a example: Main Domain: brad.com Main IP: 64.64.64.64 Parked Domain: steph.com Parked IP: 64.64.64.64 Needs to be Main Domain: brad.com Main IP: 64.64.64.64 Parked Domain: steph.com Parked IP: 35.35.35.35 its says not possible that time, is it already possible …

Member Avatar
Member Avatar
+0 forum 2

Hello, Currently I am using my computer as a webserver, as I own an IP I have made the config to access it from outside. So now I can access my php sripts via http://MY_PUBLIC_IP:PORT/site.php The weird thing is that I cant get the visitors IP This script is working very good on sites with no ip on the url. Could someone help me with this issue?! function getUserIP(){ $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; if(filter_var($client, FILTER_VALIDATE_IP)){ $ip = $client; }elseif(filter_var($forward, FILTER_VALIDATE_IP)){ $ip = $forward; }else{ $ip = $remote; } return $ip; }

Member Avatar
Member Avatar
+0 forum 1

How can I get the Machine IP of visitors of my website logged. I've used function getIp(){ $ip = $_SERVER['REMOTE_ADDR']; if($ip){ if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } return $ip; } BUt what I get is my server IP. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi everyone. I got a situation here. Usually making a T-SQL(using sqlclient) on a server is very simple in vb.net if you have access to a sever. But I got this problem, where in a computer does not have access to that server but need to make a T-SQL on it without requesting an access. I actually thought of 2 possible solution. 1. The application from the Computer(W/o access) will Use a valid IP address to connect on that server and make a T-SQL. 2. The application from the Computer(W/o access) will communicate to an application from the computer (w/ …

Member Avatar
Member Avatar
+0 forum 1

router is able to display list of devices that are connected to the wifi,which could be a pc or mobile....but is it possible to hide our device from being displayed on the list

Member Avatar
Member Avatar
+0 forum 2

Hello! I have a remote database that will be accessed through a client program. The thing is, I want the client to auto detect the IP Address of the machine where the database is located, so that when I initialize the value of my connection string it would be like this: [CODE=VB.Net]Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\AutoDetectedIpAddress\folder\myDatabase.mdb;User Id=admin;Password=;[/CODE] In that way, the client program will automatically connect to the remote database whatever the IP Address of the machine where the remote database is. I don't have any clue to do this so, I'm asking for your help guys. Thanks in advance!

Member Avatar
Member Avatar
+0 forum 6

Hello I'm trying to add coding to my site so that someone can visit it, see everything on the site, but get banned so that when they come back they can't see anything anymore. My guess is they have to be banned after visiting. I tried this code but it doesn't seem to do anything you can still see everything on the page after you're banned. Just adds a message saying you're banned and sends me an email. <?php // * Auto IP Ban Script - v1.0 * // * Author: Inque187 * // * Date: (c) Oct 5, 2007 …

Member Avatar
Member Avatar
+0 forum 12

i enterd static ip in modem and connect my 3 computers to that modem with automatically confic of system ip so now i want to access my one computer through any where via internet please let know how i do this

Member Avatar
Member Avatar
+0 forum 5

Win 7 clients, Need to populate alternate IP with current DHCP assignment (I believe everything else will be static). It appears that PowerShell is the only way to get at the alternate IP config variables. We are wrestling with a TechRepublic PS module that could be the modified. I used to do a lot more of this kind of stuff, and loved this site. But I'm rusty as hell. Anyone got any pointers, thoughts or suggestions on the easiest way to remotely update these variables across a mid-sized enterprise? Thanks for anything short of go away. :)

Member Avatar
Member Avatar
+0 forum 1

This morning I awoke to find all the lights on the router off. My mum says the internet was fine earlier. We tried a few things and in the end got a new power adaptor, lights back on. We're using a Cisco Router 800 series and an Aironet 1110 Wireless Access Point. My laptop wouldn't connect wirelessly so I put the ethernet from the WAP into the laptop and it worked. I then searched how to setup the wireless connectivity as I have not done this before, I followed instructions of typing ipconfig into command prompt to find the default …

Member Avatar
Member Avatar
+0 forum 2

Hi, In Virtual Box I've installed Fedora 17 and setup LAMP development environment. I've set the static ip to access the localhost and the applicaions/projects. Now I would like to configure it as to access them using the static IP from the host machine (Windows 7 OS). How can I do this? Please elaborate. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

what is TCP IP? how can I solve DNS server problem?

Member Avatar
Member Avatar
-1 forum 7

This thread I am starting is a carry over from this thread http://www.daniweb.com/web-development/web-design-html-and-css/threads/205959/getting-ip-address-into-a-contact-form-field **In the thread above BBQKAREN and ALMOSTBOB was able to resolve her issue wich is the same issue I have but I have no way of contacting THEM here.** I have a form field (no PHP) code anywhere at this point that I wish to include the users IP address on the form as a hidden field like she did and pass it back to me when they contact us. Ok so this is what I have 1.HTML form only 2.The form does not call or execute …

Member Avatar
Member Avatar
+0 forum 19

How to get ip address of all systems connected to a network using php code

Member Avatar
Member Avatar
+0 forum 1

Hi.. Any PHP code to display the IPaddress of all systems which are connected in a LAN ? Thanks in advance

Member Avatar
Member Avatar
-1 forum 5

A few weeks ago, I noticed that when I went to Yahoo Maps to look for directions, the site had me listed as a resident of Herndon, VA. I live in Sherman Oaks, CA. When I attempted to changed this default (that I did not apply), Yahoo told me that my IP address indicated that my computer was based in Herndon. It never has been; I've always been based here in California. Up until a few weeks ago, my Sherman Oaks address was always the default. When I checked my network connections, it was set on "automatically set IP address". …

Member Avatar
Member Avatar
+0 forum 1

Hello, I trying to create a **messenger**(just for practice, so nothing fancy!). I created the server and client programs. Suppose a client(user A) initiated a connection with the server, so it's online. Now, another user(user B) wants to chat with that user(A). How do I give User B the IP address of User A. I have tried this one, `String ipAddress = connectSocket.getInetAddress().getHostAddress();` this returns me the IP address. But dont User B needs the port number of User A also to connect with that user(A)? If yes, *then how do i do it*? Any advice will help. thanks.

Member Avatar
Member Avatar
+0 forum 4

I'm looking for a process I don't know weather it will work or not. I want to connect a computer to a website using `HTTP Protocol`. Is this possible ? How we can communicate a system having a `static IP Address` from a `HTTP Protocol` ? Is there any way to do it ?

Member Avatar
Member Avatar
+0 forum 5

1) I want to make a windows service that simply pings the IP address 2) The IP addresses is located in a simple text file 3) If the service cant ping the IP's (unreachable) it sends a simple e-mail to an email address located in a simple text file.

Member Avatar
Member Avatar
+0 forum 1

hi I have a question regarding my situation in our LAN, when I ping local address by hostname (to any computer) (I'm using 192.168.0.0/16). it result in stange ip 118.98.96.151, even though after I check in the other pc the address is in 192.168 range. but if I ping using its real IP address it still connecting. (so right now to communicate with other computer I use IP address instead host name). my configuration is: - using AD server 2008, static IP. - all windows client. - two pc as internet gateway, one microtic, one pfsense. anyone know how to …

Member Avatar
Member Avatar
+0 forum 1

Wednesday 6th June 2012 is [URL="http://www.worldipv6day.org/"]World IPv6 Launch Day[/URL] (no, seriously, it is) and, we have been continually reminded in a Chicken Little fashion, the IPv4 address space sky is falling. The fact that the media obsession with Internet addresses running out has been on-going for at least a decade now, fuelled no doubt by slow news days and headline space to fill, has led to something of a blasé attitude towards making the move over to IPv6. Indeed, you might be forgiven for thinking that the whole IPv6 thing had fallen by the wayside and become another Betamax technology. …

Member Avatar
Member Avatar
+0 forum 1

First of all let me clarify that I am programmer and that my knowledge in system administration are limited ( I know more than that limited spectrum but I wouldn’t trust me on those ). This idea arose out of two deferent needs , I have a dedicated server in one hosting company with only two IP’s and I am thinking to rent two more per month because I don’t want some of the accounts there to have the same IP’s resolving name servers as the others. The second need is that I am thinking to change hosting company at …

Member Avatar
Member Avatar
+0 forum 3

I am trying to change a computer's IP address from inside a VB project using netsh. I can get the cmd prompt to open but it doesn't pass the arguments. Any thoughts? Thanks Private Sub BtnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTest.Click Dim IPmsg As String Dim NetshArgs As String ' Dim LAC As String = "Local Area Connection" NetshArgs = "netsh interface ip set address name=Local Area Connection static (IPmsg)" IPmsg = Microsoft.VisualBasic.InputBox("Enter IP information", "Enter IP subnet and gateway with a sigle space between each.", "", 500, 700) Process.Start("cmd.exe", NetshArgs) End Sub

Member Avatar
Member Avatar
+0 forum 2

The End.