lan

How to get IP address and names of all devices in local network on Android

余生长醉 提交于 2019-11-28 20:50:55
I want to see all the connected devices on my network with java, but I can't get it working. I have attached some screenshots below of how I want it to be output. I would like to have the name (for example "TP Link Router" or "Nexus 5X") and the IP address. I have searched a lot on google and stackoverflow, but nothing seemed to work for me. Even GitHub has no effective code. I tried searching for UPnP, Local Area Network, subnets, etc, but found nothing. InetAddress localhost = InetAddress.getLocalHost(); byte[] ip = localhost.getAddress(); for (int i = 1; i <= 254; i++) { ip[3] = (byte)i;

Connecting to Local Web Server when I am Outside my LAN

五迷三道 提交于 2019-11-28 18:48:52
I have a web server running out of my home. I have assigned it an address such as 192.168.1.123 on port 80. I understand that this is running on my local network. If I go to another computer on my network and type in the server's ip address, I can see the server. Is there a way to access this server from outside my LAN? Yes, you need to set your router to forward connections to port 80 to your internal IP address (192.168.1.123). Look for Port Forwarding on your router admin screen which I would imagine you access by going to http://192.168.1.1 Keep in mind that your ISP may block port 80

Connect Device to Mac localhost Server? [closed]

余生颓废 提交于 2019-11-28 15:33:36
How do I allow any device, e.g., iPhone, to connect over a WLAN to my Mac's localhost server? On my Mac, I'm running a "Hello World" HTTP Node.js server that serves a page, which Safari opens successfully, at http://localhost:1337 . And, running ipconfig getifaddr en1 in Terminal outputs 192.168.1.9 . But, Safari, on both iPhone & Mac, displays "Safari can't connect to the server" when it tries to open http://192.168.1.9:1337 . I don't think this should involve port forwarding because I only want the HTTP server to be available privately, not publicly. Related: Accessing localhost from iPhone

Send/sync variable/text over LAN in Python 3 [closed]

寵の児 提交于 2019-11-28 14:15:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . OK, I wanted to make an python application that allows me to send a message over LAN. Here's the code that "works" "locally" (imagine that I'm forming 2 of my fingers to make an " on those 2 words) username = input("username: ") run = 1 while run == 1: message = input(username + "

how to make jetty server accessible from LAN?

北城以北 提交于 2019-11-28 12:01:54
I am trying to access a web app (deployed in jetty8 on my machine (A)) from another machine (B) on the LAN using 192.168.0.6:8080 (A's IP) but its not working. While I can access apps hosted on AppServ on machine B from A normally using 192.168.0.5 (B's IP). I can access the app normally on localhost:8080 on machine A. I can assure that there is no network problem, but jetty is not accessible through the network for some reason. Is there any specific configuration to make accessible through the LAN? My app is Maven project and I run it from eclipse and settings are in both web.xml and pom.xml.

Exchange Data between two apps across PC on LAN

冷暖自知 提交于 2019-11-28 09:24:15
I have a need of implementing two apps that will exchange data with each other. Both apps will be running on separate PCs which are part of a LAN. How we can do this in Delphi? Is there any free component which will make it easy to exchange data between apps across PCs? If I'm writing it myself, I (almost) always use sockets to exchange data between apps. It's light weight, it works well on the same machine, across the local network or the Internet with no changes and it lets you communicate between apps with different permissions, like services (Windows messages cause problems here). It might

How to access my localhost from another PC in LAN?

我是研究僧i 提交于 2019-11-28 09:09:04
I am using WAMP server to run my website. I am using Windows 7. I created LAN between 2 PC and I want to access my localhost from the second PC. Note that I am not using Internet connection so I couldn't use IP address. Please, give me your suggestion. Abbas Uddin You have to edit httpd.conf and find this line: Listen 127.0.0.1:80 Then write down your desired IP you set for LAN. Don't use automatic IP. e.g.: Listen 192.168.137.1:80 I used 192.167.137.1 as my LAN IP of Windows 7. Restart Apache and enjoy sharing. pradeep yadav IP can be any LAN or WAN IP address. But you'll want to set your

Get LAN client machine name in servlet based web application

≡放荡痞女 提交于 2019-11-28 06:07:38
问题 I have spring MVC application, that runs in LAN. In there client machines IP addresses are changing time to time. Therefore I want to get client machines names(Their machine name is fixed ),because I want to get client machine's details without creating log in. Is that possible to get client machine's name?? if it's possible how?? Or is there any other way to get that user details Edit: codes I have tried so far In HttpServlet public void doGet(HttpServletRequest request, HttpServletResponse

How to setup Git on local network?

假装没事ソ 提交于 2019-11-27 21:39:09
问题 I downloaded Git setup and trying to setup for computers in my network. I searched for the process but I found it for to host code on line on github.com. I found a few links but there is not the whole process. I am aware for how to push and pull. 回答1: To create a new repository Create directory using git bash or create manually User following commands to create repository cd /repo/path/projectname.git git init --bare After initialize directory share the directory and grant all permission to

How to git clone a repo in windows from other pc within the LAN?

亡梦爱人 提交于 2019-11-27 18:30:39
I have this git repo "c:/xampp/htdocs/ * *" in my main PC and its IP address is 192.168.0.6. Now I want to git clone this repo from ubuntu-server which running on a Vmware Player in my main PC. I did git clone \\192.168.0.6\c:\xampp\htdocs\**** and git clone //192.168.0.6/c:/xampp/htdocs/**** from ubuntu-server and neither worked. fatal: could not create work tree dir '****'.: Permission denied What did I wrong? what should I do? To access the repo, you must either share it on 192.168.0.6 or must be the same domain user as the one that owns the file on 192.168.0.6 . If you share the directory