问题标签 [local-network]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
179 浏览

c# - C#应用控制本地网络iOS

我正在用 C# 在 Windows 上制作应用程序,我想制作一个 IOS 和一个 Android 程序。事情进展顺利,但我有点坚持实现正确网络通信的要求。

我在套接字上搜索了很多,我很确定我必须使用它,但我不确定。我真的找不到太多关于它的信息。所以我想知道你们是否能指出我正确的方向。

所以我的问题基本上是如何建立连接并发送适当的功能。

0 投票
4 回答
1501 浏览

c# - 使用“目录条目”获取本地网络上的 IP 地址

我必须开发一个桌面应用程序,它允许我在本地网络上共享文件。为此,我可以获得一个listview设备主机名,但是当我知道他们的 IP 地址和 MAC 时,我去查看System.net了其他几个 MSDN 论坛(地铁应用程序的帮助可用)。

如何获取本地网络上所有设备的 IP 地址和 MAC 地址?

DirectoryEntry用来获取用户名并显示在listview.

更新:我用过

但地址是在 IPV6 中返回的。我需要它在 IPV4 中。

0 投票
1 回答
4365 浏览

java - 无法读取网络共享文件夹上的文件 [webbapp 已通过 tomcat 作为服务]

我在 Windows 8.1 上的 Tomcat 7.0.57 上有一个 Web 应用程序,将其作为服务运行,它被指示复制本地网络共享目录中的文件,例如 \\Network_machine\Shared_folder,但它不能这样做。

我无需任何身份验证即可访问 Windows 资源管理器中的共享文件夹,因为它有权为所有人读取。以下代码正在检查目录是否存在:

附加信息:

日志 - 源目录存在返回“FALSE”。

0 投票
0 回答
615 浏览

xampp - 如何让本地网络用户访问我在 Windows 上托管的 XAMPP 站点?

我需要在我的大学的 LAN 中进行在线测验....我已经在 XAMPP 服务器中使用 PHP 创建了在线测验网站...我需要为连接在 LAN 中的所有客户端提供该站点的访问权限....请帮助我成功执行此操作...提前谢谢你

平台:视窗

服务器:XAMPP

到目前为止,我对局域网中网站的访问一无所知。所以我不能自己尝试......我用谷歌来回答我的问题,但我的问题并不清楚。我想知道是否有任何具体的步骤可以让我真正发挥作用?

谢谢你们

0 投票
1 回答
541 浏览

ubuntu - 如何使用nmap检测ips?

我目前正在演示中间人攻击敌人,我使用我的手机作为受害者,我的 PC 运行 ubuntu 14.04LTS 作为攻击者。我正在使用 nmap ping 我的手机以检查其是否在线...

但是不知道即使在同一网络上的电话我也能得到结果..

所以我也尝试了 -Pn 但输出保持不变(主机似乎已关闭),但事实并非如此。电话已启动并正在运行...请帮助我是网络新手我可能做错了什么???

0 投票
1 回答
513 浏览

networking - 如何在我的本地网络中集成 OpenStack 实例?

如何在我的本地网络中集成 OpenStack 实例?我在单个 Ubuntu VM 上运行 Devstack Kilo,该 VM 具有与物理主机不同的 IP。我将本地网络中的一组 IP 分配为浮动 IP。但是我既不能从实例 ping 外部网络,也不能 ping 本地网络。

0 投票
1 回答
42 浏览

networking - Organizing a network without an internet connection

Every year some teachers from our schools travel to a far away place where we organize scientific courses and other educational activities for children in the nearby places.

Unfortunately, there is no Internet there and there is no way to find it in the vicinity. So, this year, we thought, that probably we could bring up a kind of a local network and put up a site there (we will still use w-fi to spread the network over the local buildings), so that students could be able to post their discoveries / blog posts / photos.

My questions are the following:

  1. Is it at all possible to install a 'server' or something and run a local netwrok? (we have a few routers / laptops (Windows)
  2. Is it possible to run a site with a forum / chat / blog / something on this 'local network'? What way to look? Joomla? Drupal? WordPress?
  3. I have next to no experience, so I need an easy to go solution. If possible - free. I know it will require a lot of reading - and I would be glad if someone told me the key words / things I need to look into / up?

Now, what is important is that I am not against reading / self-studying, but I need to be pointed in the direction that will lead me to the desirable solution, not just "how to set up a secure / top-notch" network that will take me years to get the grip of.

Thank you!

0 投票
1 回答
133 浏览

c# - 从托管网站访问网络文件夹

我在 c#(asp.net) 中开发了一个 Web 应用程序并托管在服务器中(比如 Server1)。应用程序希望对位于另一台服务器(网络路径)中的文件夹(例如 server2)进行读写访问。我可以通过键入网络路径从 Windows 资源管理器中的 server1 打开文件夹。但在应用程序中没有发生访问错误(System.Unauthorisedexception)。我不知道我想为哪个用户提供什么访问权限?请帮我。

0 投票
1 回答
928 浏览

p2p - How do I use SSDP?

I need a way for my application to find someone with the same application on a local network.

But can't find the docs to use a protocol like SSPD. It says its UDP on port 1900 and the ip 239.255.255.250.

It also says it can use NOTIFY and M-SEARCH.

But that is it. I've hit a wall. And I need some guidence.

OVERVIEW

Trying to make my apps automatically find each other and exchange ip/names on a local network so they can talk to each other p2p-style without a connection broker.

0 投票
2 回答
731 浏览

php - 无法在本地网络中访问 Wordpress 多站点

我想问如何在本地网络中访问 wordpress 多站点。

我使用xampp-win32-5.6.14-4-VC11作为服务器,和wordpress v4.3.1

我已经可以从同一网络中的另一台计算机访问XAMPP和普通的wordpress 。

但是,在更新到wordpress多站点后,我无法再从同一网络中的另一台计算机访问它,地址将自动重定向到 localhost,我尝试更改此行

从:

至:

它将不再自动重定向到“ localhost”,但我仍然无法从另一台计算机访问 wordpress 多站点。