lan

Java Multicast Sending Data, Not Receiving

ぃ、小莉子 提交于 2019-12-01 17:47:51
问题 I am writing a class in Java which is used to greatly simplify the process of multicasting. However, I am having two big problems with it: The class sends data (I can verify this with my net monitor, Wireshark) but the data is not received by any others in the same group. On some machines, the sending packet TTL is exceeded in transit (again, according to Wireshark). Could anyone please help me? I've been trying and searching for answers for hours, and it appears that my code follows all of

Java Multicast Sending Data, Not Receiving

ぐ巨炮叔叔 提交于 2019-12-01 17:25:33
I am writing a class in Java which is used to greatly simplify the process of multicasting. However, I am having two big problems with it: The class sends data (I can verify this with my net monitor, Wireshark) but the data is not received by any others in the same group. On some machines, the sending packet TTL is exceeded in transit (again, according to Wireshark). Could anyone please help me? I've been trying and searching for answers for hours, and it appears that my code follows all of the basic procedures for connecting to, joining, sending, and receiving data from a multicast host. Here

How to find my server in LAN?

落爺英雄遲暮 提交于 2019-12-01 11:17:44
I have two my own applications on C++ and Java: server and client. It both in one LAN and can transfer data via specified port. I want to make it possible, that client can find IP of server. But how to? Enumeration of all possible IP with address mask - bad idea, it will take a lot of time. May be exists some way, where I can send broadcast to lan from client and receive it in server? Or another way... I can't find information about this, but I think that is possible, because I see it in MyPhoneExplorer on android, for example. Why not using UDP broadcast? the client can UDP broadcast "I am at

Web Request error 407 Proxy Authentication Required

你。 提交于 2019-11-30 16:48:37
Trying to GetResponse From a web site; using System.Text; using System.Net; using System.IO; namespace DutyPharmacy751013 { class Program { static void Main(string[] args) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com/"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Encoding encoding = Encoding.GetEncoding(response.CharacterSet); Stream stream = response.GetResponseStream(); StreamReader reader = new StreamReader(stream, encoding); string responseText= reader.ReadToEnd(); } } } This code is working on win7 and LAN and on win8 and any

Web Request error 407 Proxy Authentication Required

谁都会走 提交于 2019-11-30 16:12:34
问题 Trying to GetResponse From a web site; using System.Text; using System.Net; using System.IO; namespace DutyPharmacy751013 { class Program { static void Main(string[] args) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com/"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Encoding encoding = Encoding.GetEncoding(response.CharacterSet); Stream stream = response.GetResponseStream(); StreamReader reader = new StreamReader(stream, encoding);

Creating a remote server on a LAN instead of using Git Hub [closed]

↘锁芯ラ 提交于 2019-11-30 15:07:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Can I create my own remote server instead of using Git Hub? i.e Can I make a remote server on LAN where 3 computers are sharing a drive on a network to do the collaborative work using Gitbash? 回答1: There are several ways to do this Host internal repositories like Gitlab or Stash. This will be similar to services

EventLogQuery reader for remote computer?

这一生的挚爱 提交于 2019-11-30 13:40:45
I'm using this code to readmy own event Log from my win7 Computer. EventLogQuery eventsQuery = new EventLogQuery("Security", PathType.LogName, queryString); eventsQuery.ReverseDirection = true; EventLogReader logReader = new EventLogReader(eventsQuery); However - I need to read the EventLog for a remote computer ( Lan - Same domain) How can I do that ? http://msdn.microsoft.com/en-us/library/bb671200(v=vs.90).aspx public void QueryRemoteComputer() { string queryString = "*[System/Level=2]"; // XPATH Query SecureString pw = GetPassword(); EventLogSession session = new EventLogSession(

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

孤街醉人 提交于 2019-11-29 18:25:59
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 + ": ") if message == "exit": print(username + " left") run = 0 else: print(username + ": " + message) My question how do I send the variable "message" over LAN? I wan't it to send the variable message over LAN to another PC and print it on it and the other way around. Here are several files that may help you with

Get LAN client machine name in servlet based web application

こ雲淡風輕ζ 提交于 2019-11-29 12:50:54
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 response) throws IOException { String hostname = request.getRemoteUser(); //this gives null String

Make WAMP www available on local network

此生再无相见时 提交于 2019-11-29 06:46:28
I know there are questions similar to this, but none address my specific situation. I have a WAMP server setup for developing some websites, and it's running great. I need it to be available to another computer on my local network via a wireless router. The other computer is actually a Mac, and I only need to be able to view the development sites through a browser (do not need to access phpmyadmin or mySQL). I am able to access the localhost on which WAMP is running through the browser (the default WAMP page is displayed with links to the site projects) using the IP of my windows machine.