Click here to Skip to main content
15,896,726 members
Everything / LAN

LAN

LAN

Great Reads

by ceken
Step by Step explanation of remote controlling test instruments over LAN
by Maciej Los
This tip is desired for those who want to list all available SQl Server instances that are in a network.
by Grasshopper.iics
Configure Raspberry Pi in LAN with a Laptop, Install OS over LAN, Programming in Pi, Web Server in Pi
by Grant Curell
Using proxychains for pivoting through routers and other multi-homed devices

Latest Articles

by marcus obrien
Giving your devices constant IP addresses
by Grasshopper.iics
Configure Raspberry Pi in LAN with a Laptop, Install OS over LAN, Programming in Pi, Web Server in Pi
by Grant Curell
Using proxychains for pivoting through routers and other multi-homed devices
by Maciej Los
This tip is desired for those who want to list all available SQl Server instances that are in a network.

All Articles

Sort by Score

LAN 

24 Aug 2011 by OriginalGriff
Look at the Socket class[^]"hey OriginalGriff can u please explain in a bit more detail ... . I'm new to programming ... not able to understand how can I make a Tic Tac Toe Game that can be played on LAN"It's a bit too detailed to go into here - but there is a good tutorial on it...
26 Dec 2011 by ceken
Step by Step explanation of remote controlling test instruments over LAN
26 May 2012 by Richard MacCutchan
1. Don't do it when the server is running.2. Don't cut the wire.3. Same as 2.4. Get a more resilient system and disk array.These are all environmental problems and you cannot program round them other than taking some action in your clients if they cannot connect to the server. Some...
6 Jan 2011 by OriginalGriff
Yes. Sort of.You would have a ConnectionString which supplies the address and login details for the database, but after that you need to supply code or browser html to access the database itself and enter / extract the records.Note I would suggest that for the DB you look at MsSql or...
24 Aug 2011 by Dalek Dave
In the name of all that is bacon, download vb.net or c#.net and use a current language!You may as well program in something that is used today as opposed to tech equivalent of cuniform.
10 Dec 2010 by Abdul Quader Mamun
Thank you for your question. You cannot get password. User Name only. You can impersonate Windows XP user for .NET application by the bellow code.System.Security.Principal.WindowsImpersonationContext impersonationContext;impersonationContext = ...
31 May 2012 by Oleksandr Kulchytskyi
Hi, first of all this feature can be reachable in .NET with help of P\Invoke and WinApi.General worfkflow process can be divided on the 2 stages:1) Retrieving all pc's connected via lan to a single network.2) Sending to each pc appropriate message.First part of workflow can be feasible...
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...
3 Jan 2012 by CPallini
It could possibly be a hardware failure, who knows.However, it should be able to boot from the CD even on HDD failure, I guess.BTW What has it to do with the 'LAN' tag?
3 Jan 2012 by Wendelius
First impression is that your HDD has suffered from the crash. When booting from CD make sure that you have the CD listed in bootable devices (as first) in BIOS. Based on the fact that the CD is not read, it sounds like the computer isn't trying to use it at all.After you manage to boot from...
14 Jan 2013 by Zoltán Zörgő
It depends on your hardware. If it is a server, you probably can use some remoting feature for that (like iLo[^] on HP). Consult with your server vendor. On some desktops there is vPro[^] that can be also used to control power state.But these are not available for all hardware platforms. So...
30 Sep 2014 by Wendelius
In my opinion a VPN connection isn't comparable to a socket conversation. VPN is about creating a private network 'extension' in a public network. In most cases it's used for security but also offers other benefits. You can still communicate via socket within a VPN. For more information see...
28 Apr 2010 by Michel Godfroid
Well, you could of course listen on a udp port, and handle the message directly.The things is when you start doing this, you'll have to handle all the nitty-gritty of opening ports, checking the firewall, checking security, checking if the client can do this operation, etc...WCF handles all...
21 Dec 2010 by fjdiewornncalwe
I assume you are referring to this article.Please post your question there, not here. The author of the article will not receive notification of your question and you won't get an answer from him unless he just happens upon this.Cheers.
25 Aug 2011 by Keith Barrow
I just want to add my voice to those say don't use VB5, it is ancient (in IT terms), was replaced by VB6 and neither is a particularly good language to start with. You will also find newer languages easier to get to grips with.I suggest VB.NET (if you really want to use VB) or C#. If cost is...
30 Sep 2013 by Richard MacCutchan
Then you need to go and search[^] for the items you are interested in.
1 Oct 2013 by Maciej Los
M.S.S.E wrote:(...)how set up such a connection (...)I need (...) a complete guide to setup (...)It doesn't work like this! This is a place where you can get a quick answer, not complete guide. Please, use Google with statements:Oracle enable tcp/ip connectionsHow to setup...
29 Sep 2014 by Richard MacCutchan
Try the following modificationspublic void sendfile(FileInfo src,NetworkStream ns){ network = ns; this.data = new byte[packetsize]; fs = new FileStream(src.FullName, FileMode.Open, FileAccess.Read); filesize = fs.Length; int sum = 0; while (sum
11 Mar 2015 by Richard Deeming
Have a look at this article:Retrieving IP and MAC addresses for a LAN[^]
4 May 2016 by OriginalGriff
In order to do this, you need to set up a user identity on the computer sharing the folder. You then share the folder and give appropriate access permissions to that user when you share it.The remote PC's can then use the user name and password combination you specified to access the...
1 Jan 2021 by KarstenK
The most common solution for that is Universal Plug and Play. Simply spoken the search is started by a broadcast message to which all devices are answering and so you find them. Looks like Portable SDK for UPnP Devices is some good starting...
2 Jan 2021 by Richard MacCutchan
Take a look at NetServerEnum function (lmserver.h) - Win32 apps | Microsoft Docs[^].
2 Jan 2021 by RickZeeland
In addition to the other suggestions: another option would be using the ONVIF protocol[^] although this is mainly aimed at network video products.
28 Apr 2010 by elad2109
Hi,What's the easiest way to implement lan interprocess communication ?I need process on machine A be blocked until process on machine B send him just a simple string msgDon't now if it worth building a whole WCF projectWhat Do you say?
28 Apr 2010 by Michel Godfroid
Here's a good example using C#. It does a lot more than what you ask for, but I'm sure you can zoom in on the relevant bits... http://msdn.microsoft.com/en-us/magazine/cc163648.aspx[^]Choosing the port is up to you. Don't use anything below 1023, because they're pre-assigned to services....
17 Oct 2010 by dangbka
Hello everybody ,I am trying to make a simple application that interact to database SQL server, and it can run over a LAN. My ideas is use remote Connection by changing the Connection String like:public partial class Form1 : Form { public Form1() { ...
17 Oct 2010 by T2102
Will you and all users be on the same domain? What is your problem / error message?I have set this up from another country using logmein free before. I would suggest that you setup DSN on each machine and make sure you test the connection.
17 Oct 2010 by T2102
Also visit connectionstrings website
1 Nov 2010 by KE7JLM
I am kind of lost when it comes to network programming. My objective is to make a server-client program. It is for a robotics application. The way I want it to work is: The server, from now on I will call it the Operator Interface, will be a computer connect to the intranet. The client,...
21 Dec 2010 by skylightpigeon
hello all,i would just like to ask for help about this line of code below:RemotingConfiguration.RegisterWellKnownServiceType(Type.GetType("Temporary_Server.Server"), "Server", WellKnownObjectMode.Singleton)where did "Temporary_Server.Server" came from? is it the name of the solution?...
21 Dec 2010 by Sandeep Mewara
Well, I just downloaded the project as per the link and looked at it. It looks like 'Temporary_Server' is the namespace and 'Server' is the class name. Thus, combining the two, in order to access/get the type of the Server class, 'Temporary_Server.Server' is being used.
23 Dec 2010 by skylightpigeon
Thank you very much. you are correct. :) merry christmas
6 Jan 2011 by Pritesh Aryan
I am new to Database applications. I have one question. Suppose I have an application which is running on 10 PCs which are on the LAN. Each user on their PC enters and retrieves data.Can I achieve this functionality by just using ConnectionString? This means giving the address of database...
19 Aug 2011 by XeeShaN AbbAs
Hi..I've made a program in WCF. Where client send data to host. It is working perfectly whenI run host and server on same pc my server side ishost.AddServiceEndpoint(typeof(IHelloService), binding, new Uri("http://localhost:9000"));host.Open();my client side isvar cli = new...
19 Aug 2011 by Simon Bang Terkildsen
You're telling your client that your service is located at http://localhost:9000 meaning on the client PC.you have to correct the address in your client, eg. http://192.168.1.100:9000
25 Aug 2011 by Media2r
I just received a telex from 1997 asking for their programming language back. Like the rest of them said - if you want to learn programming, start with what's current and add onto it with whatever comes next. Playing catch-up from a different millennia is dedication, but also an exercise in...
1 Sep 2011 by namaskaaar
I have installed a software on my server and now i want to access this software from any of my system connected together in that network. This may be a multiple instance also. Means one or more system in network can use this software at same instance how can i achieve this goal...
1 Sep 2011 by #realJSOP
Share the folder that the software is is in (you may want to set the permissions of the folder to execute only). If it's a .net app, the users' data should be saved on their own systems.
6 Sep 2011 by hiteshprajpati
Respected SirUsing LAN connection how can I view my website in other PC ?Both PC are connected using LAN. PC OS is Windows 7.There is IIS 7 and Virtual Directory created on my PC.I go through the procedure of sharing the folder and edit permission.I can access website on my PC using...
6 Sep 2011 by pooja 08
I think you have to type the ip address of your pc n port no of your virtual directory in url instead of localhost and check the iis settings
22 Dec 2011 by girirajshah
hi, I m Searching for source code or help for REMOTELY APPLICATION INSTALLER that is able to intall any software remotly over connected machine in LAN as its remotly installer i need to add silently features for installing any software by this application that remote machine doesn't know abt...
22 Dec 2011 by jerfypowell
Here is what I googled for SCCM and C#.I know its not exactly what you are looking for, but maybe it will lead you in the direction you want.http://social.technet.microsoft.com/Forums/en-US/configmgrsdk/thread/f4d23b91-4bc2-45ac-a943-391e28ff7a25/[^]SCCM is a Microsoft Product...
3 Jan 2012 by shikhar gilhotra
my laptop is not been able to recover from XP crash. When i put the Bootable CD in, it does not reads it, it says: no bootable device found. I have checked both difernrt CD and the DVD Drive(external as well) , No JOY. does that mean that my HDD is gone ? My laptop is Dell inspiron 1440(2 yrs...
28 Jan 2012 by amertarekt
i have a router and 4 computers connected to it and it connect to Internetmy maximum download speed is 256KB/Sec as the LAN speed is 2 Mbpsi want to divide the bandwidth over the 4 computers as what i want the first -> 20% from the bandwidththe second-> 30%the third-> 10%the...
28 Jan 2012 by OriginalGriff
If your router does not provide this (and it probably doesn't) then your only alternative is to install software on all clients to do it. BTW: Are you really running a 2M bps LAN? :wtf: Or do you mean your ADSL internet connection is 2M bps? Because even bad old coax gave 10M bps...
15 Feb 2012 by Lancy.net
Hi,I have an internal site I created on my computer. It's in ASP and I can view it from my computer by typing in the browser the domain of my computer and the folder name that's in InetPub. However, I want to show this website to someone on another computer.I Have added my site in IIS7.using...
31 May 2012 by gaurish thakkar
How do i display a custom message on all the pc`s connected via lan to a single network.
29 Sep 2012 by psybuzz
Objective Program: Making a program to send a message in txt to your friend's computer over wifi without having the user to manually create/connect to networks.(not for a class assignment or work by the way)I've doing some research on this problem, and encountered a lot of things that I...
14 Jan 2013 by coffeenet
We have a linux machine in our lab that is used for experimental purposes. And, every now and then, it crashes, and we can no longer log-in. So, we find ourselves having to manually push the restart button.Is there a way to reboot a crashed linux system remotely?Note: Doing this over the...
17 Jan 2013 by sjelen
It's hard to give a solution without knowing your exact network setup.Most common case when connecting through a router is that your local network is behind NAT and it makes direct connection from Internet to local computer impossible.Solution depends on your router capabilities: you would...
17 Jan 2013 by animares
I just want to use socket to connect to a remote computer and send the message (TCP chat). What do you suggest? Port forwarding or put the computer in DMZ zone?
5 May 2013 by Maciej Los
Please, use Google! Next time, please, be more specific and provide more details. Shortly describe your needs.I think this set of links will be enough for start!CCBoot - LAN Boot Software for Windows[^]How to Install Windows 7 over a Network using Linux – PXE, DNSMasq, and Samba[^]How...
12 Jun 2013 by Emence
Hi!I'm trying to write a stress-tester for lan.Looking at the Network-Load in the Taskmanager it seems i can only transfer about 500MBit/sec on a GBit Networkcard (i checked all the Adapter settings)Sending from Both Sides gives my a network load of almost 100%.But sending the received...
30 Sep 2013 by M.S.S.E
Hello all,I have developed an accounting .NET application using Oracle database for a store to manage sales operations. It was suggested that to install the same application to another pc which requires LAN connection over TCP/IP protocol, so now we have two applications manipulating the...
1 Oct 2013 by marimir
I want to get all IPAddresses in a LAN network from a client PC by my vb.net code ...plz help me ...
1 Oct 2013 by Rakesh Meel
visit here...http://www.dreamincode.net/forums/topic/24549-vbnet-find-all-ips-on-a-lan/[^]orhttp://www.devasp.net/net/articles/display/273.html[^]
10 Oct 2013 by Banci Gurjar
Hello All,Here is the description of the case i am stugging on:I have an application developed using .net C# and uses attached Db file with it without any SQL server in its App_Data folder named as Database1.mdf and Database1.ldf, i can successfully connect with my local application, but i...
15 Dec 2013 by Mr.TMG
Hi all, I've spent a very long time trying to work with sockets and multi threading only to find that i don't have the slightest clue how to use them.Being very short on time now, I need to find an alternative solution. objective: Several client machines must connect to a server machine...
15 Dec 2013 by Sergey Alexandrovich Kryukov
Please see my past answers:an amateur question in socket programming[^],Multple clients from same port Number[^].—SA
3 Feb 2014 by jackerj77
Hi,I am new in this field. I have created an app like website. I want to sell it as a software. My application is in asp.net c#. I run it through visual studio (of course). Is there any wany i can make some shortcut type files which can run on my clients pc without uploading it to a web...
3 Feb 2014 by dharam1
You can host your website in clients local environment on IIS.Please check the below url's.http://support.microsoft.com/kb/323972[^]http://www.hosting.com/support/iis7/create-new-sites-in-iis-7/[^]
4 Feb 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer - ASP.NET Website installs/updates[^].Quote:Option 1. Create web application installation packageUse Web Setup Project for creating a web application installation package (.msi) Creating or Adding a Setup Project at MSDNYou can create your installation the way it will offer user an...
4 Feb 2014 by Ahmed Bensaid
http://stackoverflow.com/questions/646370/how-to-access-your-website-through-lan-in-asp-net[^]
28 May 2014 by Member 10379406
Hi everyone,I am developing a java application to use in LAN. In my app, one system will broadcast with one keyword, all other system will do something with that keyword and respond to the sender with the resultsender: Broadcast(keyword)receiver systems: result=DoSomething(keyword),...
28 May 2014 by Richard MacCutchan
You probably need to use the networking features of Java; see http://docs.oracle.com/javase/tutorial/networking/[^].
7 Jun 2014 by sudheeshkpza
Hi,i would like to develop a Network Topology Diagram using asp.net.so,please suggest me some method to find out ip address of nearest router in the LAN.Thanks_
7 Jun 2014 by OriginalGriff
This might do what you want: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipinterfaceproperties.dhcpserveraddresses(v=vs.110).aspx[^]
17 Jun 2014 by Member 10891385
I'm using a MOTOROLA FX9500 Fixed RFID Reader which is connected to my network.If there is more than one reader (same model) in the network, how do I list all RFID Readers in the network? Is it possible using wsdiscovery? If so, how?
21 Aug 2014 by Joan M
Hello all,I've been trying to see if a XP computer is started (compA).To do that I've been using arp calls in a batch file from another XP computer (compB):@setlocal enableextensions enabledelayedexpansion@echo off:startfor /f "tokens=1 delims= " %%i in ('arp -a ^| find /i...
29 Sep 2014 by Member 11118232
public void sendfile(FileInfo src,NetworkStream ns) { network = ns; this.data = new byte[packetsize]; fs = new FileStream(src.FullName, FileMode.Open, FileAccess.Read); filesize = fs.Length; ...
12 Nov 2014 by AK_singh
I have to perform a sample test which require a WAN and a LAN, having a communication medium between them.I have a clear idea about LAN and WAN networks but what i am looking for is :1. Can we consider two different LAN in our network as a WAN ? If yes then how can be build it in any...
16 Nov 2014 by OriginalGriff
You can't directly get the IP - because without the IP you can't talk to it to find out what it is - unless you know the host name of the device...This might help though: Retrieving IP and MAC addresses for a LAN[^] It retrieves all IP addresses on the LAN, and you can feed those into your...
10 Dec 2014 by Member 11118232
i m getting error "An exception of type 'System.Net.Sockets.SocketException' occurred in System.dll but was not handled in user code Additional information: A socket operation was attempted to an unreachable network" on this.client = new TcpClient(""+this.myip, this.myport);
10 Dec 2014 by Rob Philpott
The constructor you are using there is expecting a hostname and a port. It looks like you are trying to use an IP address as the hostname.Try this (presuming myip is of type IPAddress):new TcpClient(new IPEndPoint(this.myip, this.myport));
11 Mar 2015 by Member 11138570
How can I get the IP addresses of all peers that are connected to a Local Area Network in C#?
17 Jun 2015 by tslin89
Hello all, I am using autobahn websocket[^] to create communication between my server and android client. When I hosted my web socket on my site IIS and connect from my android, it is working fine.Site URL to connect: "ws://mysite.com/WSockets/WSHttpHandler.ashx?name=android".But when...
10 Nov 2015 by veena nair
i already develpoed a sketch and c# program to read the serial out of Arduino uno analog pin and control digital pin. Now i am using a shield to connect the Arduino uno through Lan. So how can i convert the sketch and program to use it on lan.============sketch============ int LED=...
10 Nov 2015 by Garth J Lancaster
you could try something along the lines of this https://www.arduino.cc/en/Tutorial/WebServer[^]
22 Nov 2015 by Richard MacCutchan
Google for "sockets c#" and you will find many examples and tutorials.
28 Feb 2016 by Member 12353779
I have a code for single client - server but i am confused how to convert it to multiple client-server in a LAN network.I have a project to connect pcs in a LAN network like colleges or cyber cafes and exchange data between the clients and the server.I want the code for UDP connection and in...
1 Mar 2016 by Member 3892343
I want to ask Iir is a request of my boss to do it) can I connect through Lan to remote computer and get bios Info with the Windows WMI service? the computer might not have OS but it will be powered on. Can connect with managment scope? any Line of code?What I have tried:tutorial code...
1 Mar 2016 by johannesnestler
the computer has no OS and you want to connect with WINDOWS Management instrumentation?If you/your Boss can change the requirement there will be a chance to read some(!) bios Information through WMI for powered-on Windows computers in the network (I hope it's a domain, what your example codes...
11 Mar 2016 by Joan M
Hello all,I will have two computers, one with some data and the other one will need to modify and query that data.This is not a database, and a database can't help at all as the data is stored into a physical machine controller (i.e. a CNC machine) and I do already have the program that...
4 May 2016 by Member 12133159
Hello,I'm working on Windows Server 2008R2. I want to share a Folder with some limited number of Computers, say, computer1, shivaji, John...What I have tried:I tried Advance sharing and regular sharing method of finding computers on network to share with but either it is shared with...
10 May 2016 by dravoss
I want to use "__Link" and "__smtpDate()" in the subject line when i send a compaign to any isp like yahoo , gmail , but its not understandable for the isps , what is the php function that i can use for theme please .What I have tried:i tried __Link and any word that begin with "__" like...
21 May 2016 by Cansisti
Hello, I want to obtain a table of ip's that are reachable in LAN.Something like method 2 in this article: Determine IP Address From a MAC Address[^]And I need to do so using raw winsock2.h only.What I have tried:Pinging every single ip by given submask - this takes way too...
18 Aug 2016 by tomjah86
Hello, everybody!I have created a WCF/WPF application. WCF is using Entity Framework to get data from database.And on my local computer everything is working just fine.But, how can I make this work in LAN? I have couple of computers in my home, so I wanted to work in this application...
17 Aug 2016 by Maciej Los
I'd suggest to start here: A Beginner's Tutorial on How to Host a WCF Service (IIS Hosting and Self Hosting)[^]For further details, please see: WCF Service Publishing[^]
18 Aug 2016 by Member 9302525
You publish the WCF app in the IIS and it should be available for your LAN. In order to access the WCF, use the virtual address and port where it was published. Also please make sure that the port is open for communication
11 Jan 2017 by Krishna Chaitanya Bezawada
Hi i am trying to execute a c# program which should restart a service when a lan cable is unplugged and plugged back to system. Please help me.What I have tried:I have tried restarting the service for a certain time period, but i need it when a lan is unplugged and plugged in...
11 Jan 2017 by Wendelius
You could monitor NetworkChange.NetworkAvailabilityChanged Event (System.Net.NetworkInformation)[^] in order to react upon changes.However, I must say that it sounds odd that a separate program restarts the service this way. In most situations I believe that the service should autonomously...
29 Aug 2017 by KarstenK
At first the database must be configured for network access. With that credentials you can access the database. Read the Oracle documentation for the details.
16 Nov 2017 by Member 13496560
My projects works fine using local host loop back 127.0.0.1 on my computer only. but how to use this on two different computers? and how to do the configuration settings for these computers.And how to connect these computers with each other,i means is there necessary to have a router or the...
21 Nov 2017 by Dave Kreskowiak
You really need to learn how Windows networking works. I suggest Googling for "Windows networking basics". The very basic overview: First, each machine has its own account database that is the only database it will trust, except if all the machines involved are added to an Active Directory...
20 Dec 2017 by ICEFLOWER2
How Can I Take Date and Time of other computers over Lan??! Why This script not work currectly at my Network? What I have tried: Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime") strComputer = "DESKTOP-2ACDFQ" Set objWMIService =...
16 Mar 2018 by RickZeeland
You can try this, create a shortcut with this command: shutdown /s /t 0
10 May 2018 by Joan M
Hello all, Preliminar information: * I have a NAS, which has a VPN server installed. * I've prepared the server to work using OpenVPN as (given what I've seen in the Internet is the most secure nowadays). * The client computer (the one that has to remotely connect to the NAS) has windows 10 pro...
10 May 2018 by Joan M
Well, at the end it is much easier than what I thought. You have to add a route in the routing table of the computer with the VPN Client. in a command line write: Route ADD -p IP_TO_THE_PRINTER MASK if INTERFACE_NUMBER INTERFACE_NUMBER can be seen writing route print in the same command...
15 May 2018 by Member 13130955
Hi, I want to pass message back and forth on client and server which are on different scenes, how can I do that in Unity?** Following is my Scenario:- I have 5 scenes- 1. BaseScene (2) OfflineScene (3) OnlineScene (4) ClientOnline (5) ServerOnline. All these scenes have button having...