lan

Finding Live Nodes on LAN using Python

徘徊边缘 提交于 2019-12-03 04:43:28
I am creating a Messenger which is same as IP Messenger in Python 2.7 and Windows. I want the same functionality as IP Messenger uses in finding the systems running same software over LAN but I am unable to understand the technique. Can someone please help me to solve the problem of Finding the computers IP address or host name running same software over the LAN using Python 2.7 and Sockets Library. Please suggest something which can be implemented on Windows not like Nmap(limited to linux) and it will be very helpful if solution is Python's Socket Library code. " net view " command of Windows

How to get the LAN IP of a client using Java?

丶灬走出姿态 提交于 2019-12-03 04:18:23
How can i get the LAN IP-address of a computer using Java? I want the IP-address which is connected to the router and the rest of the network. I've tried something like this: Socket s = new Socket("www.google.com", 80); String ip = s.getLocalAddress().getHostAddress(); s.close(); This seem to work on some cases, but sometimes it returns the loopback-address or something completely different. Also, it requires internet connection. Does anyone got a more accurate method of doing this? EDIT: Thought it would be better to ask here than in a comment.. What if you got many interfaces? For example,

Configure firewall to enable XAMPP working over LAN

梦想的初衷 提交于 2019-12-03 03:24:22
When I turn off the firewall, I can access my XAMPP website through other LAN computers. When I turn on firewall then I cannot connect to the machine anymore. Could someone tell me what's happening? my os is windows xp. thanks. Go to Control panel - > go to Windows Firewall -> then Advance Settings -> Click Inbound Rules right Click the inbound rules and select "New Rule..." select option port and click next select all local ports or your port number for apache server. and click next select option allow the connection and click next next Give name Allow All Local Port For Xampp Try This, I

Network infrastructure discovery

孤人 提交于 2019-12-03 00:53:18
I would like to perform a thorough LAN devices discovery, so that I can create a diagram similar to the one attached, but with additional information like IP and MAC addresses. I've tried the code from Torry: type PNetResourceArray = ^TNetResourceArray; TNetResourceArray = array[0..100] of TNetResource; function CreateNetResourceList(ResourceType: DWord; NetResource: PNetResource; out Entries: DWord; out List: PNetResourceArray): Boolean; var EnumHandle: THandle; BufSize: DWord; Res: DWord; begin Result := False; List := Nil; Entries := 0; if WNetOpenEnum(RESOURCE_GLOBALNET, ResourceType, 0,

Check if IP is in LAN (behind firewalls and routers)

≡放荡痞女 提交于 2019-12-02 23:39:25
I've been crawling in the web for about 5 hours now and couldn't find a solution for my problem: My company is developing an educational game and I'm writing an autoupdater for it using Monotorrent. The game will be used in schools, but because most schools only have very weak internet connections there should only be one computer in the network that downloads from a httpseeder, and the others should leech from the one computer that is downloading from the httpseed. So I get loads of IP-addresses from the tracker and need to filter out only the ones that are in the LAN. Of course schools are

Simulating a bad internet connection

倾然丶 夕夏残阳落幕 提交于 2019-12-02 15:30:49
I'm developing an embedded device which has access to the internet through LAN. I'm in the testing phase now, and I would like to test how the device performs when the connection to the internet is poor. Currently, the device is connected to a router through a hub, which I use to monitor the packets with Wireshark. What's the best way to throttle down the internet speed of the device to mimic a scenario that may happen? Can I do it through a PC? Do I need access to the router? If so, is it possible to limit the speed of each IP in the router interface? Actually, a friend suggested that I will

MS ACCESS with desktop application over LAN

半城伤御伤魂 提交于 2019-12-02 08:32:56
What is the best way to host MS ACCESS with desktop application over LAN without using shared folder? You can use some Terminal Server (TS). For example Microsoft's Terminal server. It is a feature of server versions of ms windows OS. There are other TS available: Citrix, Nomachine. When you use msaccess desktop application located at TS, your users connect to TS by some client ("Remote desktop connection" for microsoft TS) and works just like they are sitting at the server. The only way I would consider doing it is with replication. However, you should really try to use a shared network

How do you publish an ASP.net MVC application from Visual Studio 2013 to your local network?

。_饼干妹妹 提交于 2019-12-02 08:19:37
I made a simple ASP.net MVC web application in Visual Studio 2013, and I want to deploy it so it can be accessed from the browser on other computers on my local network. I have tried right-clicking my project > Publish (not sure what settings to use, Web Deploy, Web deploy package, File system, I published the website to my inetpub/wwwroot folder. I managed to get IIS up an running, I've tried adding an application in the manager and editing the permissions to Everyone. I tried navigating to localhost/application_name but I was getting errors about not being configured to list the directory. I

UDP Packet loss simulation & probability

∥☆過路亽.° 提交于 2019-12-02 04:25:52
I am currently creating a server software that communicates with multiple arduino boards. Due to the hardware, I am using the UDP Protocol. I have a pretty simple mechanism that will resend packages in most of the cases when they get lost. I have two questions now: How probable is it that UDP Packets get lost in a Network with no Internet access and about 20 arduinos and one computer? Is it even neccessary to have a resend method? Is there a way I can simulate UDP Packet loss in this network to check if the resend mechanisms are working? How probable is it that UDP Packets get lost in a

Access localhost from another computer not on network

大城市里の小女人 提交于 2019-12-01 18:30:20
Before you say that it is a dupe, this is not the same as this , this , this or this . My question is how do you do it globally. For instance, consider this. I have EasyPHP running in my computer. At present my ip address (global) is 223.231.178.118 Now, let's say there is someone else (maybe in a different country altogether) who wants to access my ip (223.231.178.118). I do know how to access 192.168.x.x from the same network. I just want to know how you can do this globally, if possible. P.S 1 : The computer running EasyPHP is behind a router. P.S 2 : My IP (local IP is, but global one is