[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Noob Question !

Posted on 2006-10-26
4
Medium Priority
?
207 Views
Last Modified: 2010-04-05
Hi experts, this is my noob question

My client application has got a textbox on the form.

User will type the IP address in the textbox then click "Connect" button to connect to the server

The Computer is running "the Server application" and the computer is running "the Client Application" are on the same Local Area Network

My purpose : the server computer and client computer are on the same Local Area Network

So in the client application , how can the client application can dectect if the ip address which entered by the user is LAN IP or Internet IP

and in the server application , how can the server application can dectect if the ip address of the connection from client application  is LAN IP or Internet IP






 
0
Comment
Question by:lhquang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 26

Accepted Solution

by:
Russell Libby earned 500 total points
ID: 17817089

When dealing with ip addresses, the following applies:

192.x.x.x // Commonly handed out by routers
10.x.x.x
172.x.x.x // not very common, but still seen

These IP addresses are defined as private address numbers. If the entered address starts with one of these, it is coming from an internal (private) network, otherwise its external (WAN/Internet).

Regards,
Russell


0
 

Assisted Solution

by:pvlogchem
pvlogchem earned 500 total points
ID: 17864683
I found a page for you where you can find a method to check if a IP-address is inside the local network (look for the method called "WSocketIsAddrInSubNet") : http://www.mail-archive.com/twsocket@elists.org/msg06158.html
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question