• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

How do I check that a computer are a member of a sutain network????

Hi!

I'm thinking of developing a peer 2 peer client. That should not be a problem. But its a p2p client who only should allow users working for my company. How do I see that the user are inside our LAN?

You probarbly know what I meen.

For points I'd like some code in java och C++ or something simular.

Peace. Mike
0
Micke_Cap
Asked:
Micke_Cap
1 Solution
 
DreamMasterCommented:
If the users are inside your lan, you can probably check them using their IP numbers....if the IP number is in a certain range....they are in your lan...

Cheers,
Max.
0
 
CJ_SCommented:
Indeed the IP address can be of use.

in java it would be something like using sockets.

ServerSocket server=new ServerSocket(1818);
Socket socket=server.accept();
socket.getInetAddress();

The IP returned by getInetAddress should be checked against your LAN-ip numbers. Not for each and every one, just check for the boundaries in your domain.

regards,
CJ
0
 
CJ_SCommented:
The code above would be java specific. Though the WinSock object provides the same functionality.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
graham_kCommented:
just set up your firewall to only allow those from your group, based on IP address.

if you fon't have a firewall, try Zone Alarm, it's the best.
0
 
Micke_CapAuthor Commented:
It's true that I can use the IP adress when the user is inside our net but we have consultants that are outside out net aswell. Mayby I was'nt clear enough on that.

Ithink I have solved it by making a client based om my own protocol instead of gnutella. then I can make a client that has a built in crypted password.

Thank you guys for getting me on the right track...

Mike
0
 
CJ_SCommented:
If you have solved the problem could you please select one of the comments above as the answer, or delete the question? That will keep the unanswered questions list short :-)

regards,
CJ
0
 
prashant_n_mhatreCommented:
If you want to scan for Lan, I'll support checking IP address. But as graham_k suggested...Zone Alarm is the best.It is free for "personal" use.

Are you using DHCP ?

For security you may try out servlets.

Have a look at:

http://ext.rlab.cs.nyu.edu/~jsr/oreilly/servlet/ch08_01.htm

and also some code on socket:

http://www.math.tau.ac.il/~java/JavaCourse/moreinfo/socket.html

may be helpful.

0
 
prashant_n_mhatreCommented:
Sorry I was little late...
0
 
prashant_n_mhatreCommented:
servlets may be useful then...
0
 
Asta CuCommented:
Hopefully you've already been helped with this question, but thought you'd appreciate knowing this.  It would be great if you could bring this question to a conclusion, awarding the experts above who helped you with points or a comment to them on your status today.

WindowsUpdate has new updates for .NET users; Details follow - Microsoft .NET Framework
The .NET Framework is a new feature of Windows. Applications built using the .NET Framework are more reliable and secure. You need to install the .NET Framework only if you have software that requires it.

For more information about the .NET Framework, see http://www.microsoft.com/net. (This site is in English.)

System Requirements
The .NET Framework can be installed on the following operating systems:
Windows 98
Windows 98 Second Edition (SE)
Windows Millennium Edition (Windows Me)
Windows NT 4.0® (Workstation or Server) with Service Pack 6.0a
Windows 2000 with the latest service pack installed (Professional, Server, Datacenter Server, or Advanced Server)
Windows XP (Home Edition and Professional)
You must be running Internet Explorer version 5.01 or later for all installations of the .NET Framework.

To install the .NET Framework, your computer must meet or exceed the following software and hardware requirements:

Software requirements for server operating systems:
MDAC 2.6
Hardware requirements:
For computers running only a .NET Framework application, Pentium 90 mHz CPU with 32 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
For server operating systems, Pentium 133 mHz CPU with 128 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
Recomended software:
MDAC 2.7 is recommended.
Recommended hardware: For computers running only a .NET Framework application, Pentium 90 MHz CPU with 96 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.
For server operating systems, Pentium 133 MHz CPU with 256 MB memory or the minimum CPU and RAM required by the operating system, whichever is higher.

How to use -> Restart your computer to complete the installation. No other action is required to run .NET Framework applications. If you are developing applications using the .NET Framework, you can use the command-line compilers or you can use a development environment, such as Visual Studio .NET, that supports using the .NET Framework.

How to uninstall
To uninstall the .NET Framework: Click Start, point to Settings, and then click Control Panel (In Windows XP, click Start and then click Control Panel.).
Click Add/Remove Programs.
Click Microsoft .NET Framework (English) v1.0.3705 and then click Change/Remove.
More here  http://www.microsoft.com/net/

The .NET topic is being considered for addition to our All Topics link soon, so this may interest you as well:
http://www.experts-exchange.com/newtopics/Q.20276589.html

EXPERTS POINTS are waiting to be claimed here:  http://www.experts-exchange.com/commspt/Q.20277028.html

":0)
Asta


0
 
nico5038Commented:

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - Answered by: DreamMaster (100) CJ_S (100) graham_k (100)
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
moduloCommented:
Finalized as proposed

graham_k your points are at:
http://www.experts-exchange.com/Programming/Q_20409605.html

CJ_S your points are at:
http://www.experts-exchange.com/Programming/Q_20409606.html

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now