w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Find machines on local network based on port (network discover) in android
I am assuming you know how to connect to a tcp server. If not, First go through http://examples.javacodegeeks.com/android/core/socket-core/android-socket-example/ You can try opening multiple threads with each thread waiting to connect to a specific ip/port ( along with some timeout value ).If the thread produces an exception, that means the connection was unsuccesful. Othewise add that ip address to your Open_Devices list.

Categories : Java

How to monitor network status in android
ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); boolean isConnected = activeNetwork.isConnectedOrConnecting(); Should check if you currently have connectivity http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html

Categories : Android

How to monitor en0 network interface on a Mac, without having to use sudo?
If you do not need to be in promiscuous mode then you can use tcpdump as a normal user. Use the '-p' option to disable promiscuous mode. tcpdump -nni en0 -p If you need to set your interface in promiscuous mode then you could enable the root account and become root via su and then proceed to run your script. su root - python myscript.py Or su - python myscript.py With sudo defaults it can be done like (presuming an admin account called Administrator) su Administrator sudo su python myscript.py If you're concerned about the password prompt sudo can avoid it by configuring the /etc/sudoers file to use the NOPASSWD option. You can then run your script as a normal user without a password prompt. You may also try giving the bpf device files read permission for other users. Note: I

Categories : Osx

HybridAuth working within local network, but not when accessed outside of my network
I don't think that most of the OAuth2 providers will accept answers that are not coming from configured callback url. So making redirects with the register will most likely fail. Instead, try to configure your callback to look like: http://www.yourdomain.com:openPort/hybridauth-2.1.2/hybridauth/index.php Where openPort is a port number that your ISP will not block. Then in the router you can make port forwarding openPort->80 or you just can start your web server to openPort and make sure the router is not blocking the requests.

Categories : PHP

How to monitor network card link status in zabbix
No, there is no such check. You can achieve it using UserParameter. As for how, depends on the OS that runs the agent. On linux you can use either mii-tool or ethtool to check periodically. Or you can do some scripting and connect to D-Bus if you use NetworkManager. Or you can monitor the system logs, drivers usually log link detection to the kernel log. On windows I have no idea. Probably netsh or ipconfig with some findstr can get you on polling the status. Or powershell. Ask on serverfault, I bet you will have exact answers.

Categories : Networking

Sharing local user's profile picture with others in WinRT in local network game
You could directly read the IStorageFile returned by GetAccountPicture: var file = UserInformation.GetAccountPicture(AccountPictureKind.LargeImage); var buffer = await FileIO.ReadBufferAsync(file); var bytes = buffer.ToArray();

Categories : C#

Setting up local ip over wireless network to create a local server on Ubuntu
Just add this to your normal runserver command: python manage.py runserver 0.0.0.0:8000 Then others on your local network can access it through: http://192.168.1.18:8000

Categories : Django

CocoalibSpotify how to monitor playback rate change due to network lost
After play around with the spotify sdk a bit, I found the callback function in SPSessionPlaybackDelegate: -(void)session:(SPSession *)aSession didEncounterNetworkError:(NSError *)error; That would do the trick.

Categories : IOS

Hosting local maven repository on Local Area Network
Unfortunately just an apache web server is not sufficient to make your repository available over HTTP. You need additional software, a "repository manager". There is a list of them here: http://maven.apache.org/repository-management.html You can make a repository on the local network available over SSH. Here is how to do that. (1) In the build section of your pom: <!-- Make SSH wagon available.--> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh-external</artifactId> </extension> </extensions> (2) In your ${USER_HOME}/.m2/settings.xml (or wherever you configure repository URLs): <repositories> <repository>

Categories : Maven

Monitor the IP addresses from connections being made from all apps using the network without rooting the Android phone
For all those who are curious about this same issue, I was able to finally figure out how to accomplish this task, without rooting the phone or using a VPN service. The key to solving this issue, is to look in the following directory on the phone: /proc/net/(tcp, tcp6, udp, udp6, etc) Also, here is some code from an open source project that does basically what I was looking for. /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distrib

Categories : Android

Best way to monitor open .exe programs on a local computer
I think the best way to start a .exe (process) is using the Process class. This will able you to monitor it, when it's closed, even capture the standard input/output. http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx

Categories : C#

How to create a self-destroying child window to monitor an activity?
I don't quite understand what you're trying to accomplish, but based solely on the title of the question I'm guessing you want some sort of pop-up progress window that destroys itself when progress is complete. Here's a contrived example that displays a window that self-destructs when progress passes 100%. It's not very bullet-proof, but it shows that it's possible to create a window that self-destructs. import Tkinter as tk class App(tk.Frame): def __init__(self, *args, **kwargs): tk.Frame.__init__(self, *args, **kwargs) go_button = tk.Button(text="Go!", command=self.go) go_button.pack() def go(self): self.dialog = ProgressWindow(self) self.do_real_work(0) def do_real_work(self, count): # simulate doing work; update the stat

Categories : Python

Can I share the same WSO2_CARBON database between API Manager and Business Activity Monitor?
Yes you can share. And it will work fine. Sharing the same database with BAM and APIM means you are sharing all the tables used within the carbon server such as registry tables, user-mgt tables, and so forth, since by default the registry, etc is wso2carbondb.

Categories : Wso2

WSO2 Business Activity Monitor supported payment gateway
Please refer to [1] for more details for billing and metering. In BAM there is no way to connecting to a payment gateway. [1] http://docs.wso2.org/wiki/display/AM140/Monitoring%2C+Statistics+and++Billing

Categories : Wso2

Is there a way to monitor a local variable on a running real time software, other than copying it to a memory location or defining it as a static?
My answer is, no, unless you have a socket'ed processor with a high end debugger/data logger that allows full access to all registers and memory. This is likely going to be expensive ~$10k at least and is of marginal value if your application must live in a harsh environment. If this is generated code, I highly recommend against editing it after code gen. This can lead to all kinds of fun later when you try to recreate a previous build, unless you are extremely disciplined about development, which is rare in research and development. :-)

Categories : C

How to get a list with all computers from the local network?
See the documentation for WNetEnumResource, 'lpcCount' ('Entries' parameter in your code') on return receives the number of items enumerated. You're terminating the enumeration if it is greater than 0, but this is expected. You're requesting one item to be enumerated and the function does that and sets it to 1. Just remove that condition from loop termination: .. until (Res <> NO_ERROR) or (Limit > 100); .. You may also want to review the code, f.i. you don't need StrPas.

Categories : Delphi

How to make ASP.NET Web API web-service available in local network
IIS Express by default does not allow "remote" connections... this post shows you what to do: IIS Express enable external request Once you do that, you should be able to connect from ANY other computer in your network. Also, make sure to open the port in your Firewall. If that does not work, I would create a site using your local IIS and testing your service that way. Hope it helps, Daniel.

Categories : Android

Enquire other devices using same app in a local wi fi network
Look at using Bonjour to publish and scan for your app service on a local network.

Categories : Iphone

This file is in a location outside your local network
The message is because the application is unsigned. You prevent it by signing your application. The signing process is known as Authenticode. Ideally, you do this with your company's internal certificate, but that assumes your company has one.

Categories : Windows

Sharing an asp.net mvc application in local network
There really inst a simple way to answer this, but I did a google search and came up with this link. It provides a fast and easy way to host an intranet site with IIS. http://social.technet.microsoft.com/wiki/contents/articles/configure-iis-to-host-a-simple-intranet-website.aspx See the link See the link This is more of a DNS issue, but you can always provide the ip address for the end user to test.

Categories : Dotnet

Toggle between network and GPS provider on service not on activity
This could help you rethink the problem : public class GPSTracker extends Service implements android.location.LocationListener { /** * ┬ĘPRIVATE ATTRIBUTES */ // log private static final String TAG = GPSTracker.class.getSimpleName(); // private Context _context; private static GPSTracker _instance; // The minimum distance to change Updates in meters private static final long MIN_DISTANCE_CHANGE_FOR_UPDATES = 0; // meters // The minimum time between updates in milliseconds private static final long MIN_TIME_BW_UPDATES = 1000 * 30 * 1; // minute // Declaring a Location Manager protected LocationManager _locationManager;

Categories : Android

Creat .BAT to copy a .mdb from network drive to local C:/
Ok, this works for me where I work. There is a mapped drive to the location where the master .mdb is. That is "i:" drive. copy i:etsleadsoftwarepaintleadmain.mdb c:paint it copies the .mdb to the "c:paint" drive on the computer where the client clicked on the .bat file. It has been a while so I can't remember where the .bat file sits. Pretty sure it is on the client's computer. Open Notepad, add the code above, and save making sure to pick the option "All files" down below. That way you can change the extension to .bat from .txt.

Categories : Networking

Peek into local network messages on set ports (using C#RMI)
Are you going across the internet? Then probably Are you on an internal network, behind a firewall, with trusty employees, then its probably not worth the hassle. HTTP is not encrypted, and neither is about 80% of SMTP communication. It all depends how sensitive your not so sensitive data is.

Categories : C#

Connect to website on local network without knowing IP
It is the simplest and the most interoperable, but not sufficient for your case. Short answer is NO. Longer answer - usually Apple stuff comes with them on, Linux often comes with Avahin On, Windows world won't move finger unless you configure it so. But alternatives are even worse. In way, yes it will. Avahi is open-source implementation (read linux/bsd world), while Apple stuff has own proprietary thing (they started whole zeroconf story), and Windows world has own zeroconf implementation. You will also need that nobody uses .local domain within particular local network - there is certain non-zero probability that company-owned networks will have .local already populated by microsoft networking. Uhm, theoretically yes - Avahi is essentially low-scale DNS with few other low-level things

Categories : Misc

Communicating between mobile devices over a local network
For a card game I recommend using client-server. Electrotank is a good server that provides a framework that helps you create a game of this type, with rooms, chat, friends list and connect to Android and iOS. U can write server plugins in Java. http://www.electrotank.com/es5.html. Another good server solution is SmartFox. Or you can create a turn-based game, creating a database to save data and a counter on each client, where you will limit the time for each move, from this time you send data to the server and your opponent query this data the server.

Categories : Android

How to send notifications in between phones of the same local network?
You can broadcast data over the wifi. Essentially, this allows you to send data without knowing who will receive it. If your app (running on another phone) is expecting certain data, you can register a BroadcastReceiver to listen for the UDP packets. Examples can be found here, here, and other places on the web.

Categories : Android

Using AJAX to Interface with an oscilloscope on a Local Network
Most of browsers will not allow to use ajax call to go to other servers that the origin of that script. So that in your script seems to be wrong. On other hand I don't understand why to even You specify the whole IP address of server. Usually pointing to a file that should return answer should be just fine. Another thing, what king of webserver do run on that Oscilloscope. I do ask cause they are not a common machine to find, especially with a webserver. Also if you want a real time updates, don't use AJAX. Use websockets. You see, Ajax is basically a call to a webserver just like calling a website, and that process is very long when we want to make an application that will have to get data very fast. Thus, wise people did invented WebSocket API for use in browsers. You see, socket is

Categories : PHP

Share Windows folder outside my local network
Oh my! First, this is an extremely bad idea to open a network share to the outside world. Access databases are shared as normal files through the smb protocol. That protocol is not really secure and opening your machine as such (you need to open and forward TCP port 139) would certainly invite lots of unwanted attention (in short, your machine will probably be exposed and taken over in a matter of a few minutes/hours unless you know exactly what you are doing to secure it). Second, letting people access an Access database over anything else than a fast wired LAN is another extremely bad idea (WiFI, even if it's on a local network, is bad because it's unreliable and drops in the connection can damage the access file). The only ways you can share an Access database over the internet are:

Categories : Ms Access

python subprocesses (of process with subprocesses) on termination hang in OSX activity monitor
Got it working finally. This code spawns two multithreaded server instances, as subprocesses inside a test harness. You get get all console output from the subprocess, and when you CTRL+C the test harness from the terminal, all the subprocesses die too. subprocess.Popen didn't work for me ultimately. def runInstance(args): # NOTE: We don't do the stdout or stderr args p = subprocess.call(args, # stdout=subprocess.PIPE, # stderr=subprocess.STDOUT, close_fds=True, shell=True ) def main(): print "Starting test harness..." server_path = os.getcwd() + '/' + 'server.py' args0 = [sys.executable, server_path, '-p', '7000', '-t', '8000', '-u', '9000']

Categories : Python

View network activity for browser child window
If you're using Windows, you need Fiddler. If you're not, you'll have to settle for Wireshark. Wireshark is more-general and an amazing tool, but Fiddler does a much better job for HTTP and SSL conversations like you're going to be examining.

Categories : Google Chrome

How to configure ASP.NET project to be accessible via local wireless network?
Short answer, change from 'localhost' to '0.0.0.0'. That's probably all you need. Also check the port is open through your firewall, if you have one turned on. you can ping other devices on the wifi network. Some wifi access points restrict sending traffic from one node to another on the same wlan. Longer answer: When you use localhost as the hostname it's resolved (through system32/drivers/etc) to 127.0.0.1. The network card is designed to restrict access from anywhere else to that ip address, so you will need to choose a different IP address to bind to. You could choose the actual IP address for your machine, but that may change over time. The special IP address, 0.0.0.0, means bind to all interfaces on the system.

Categories : Asp Net

How to list all shared devices on local WiFi/LAN Network?
you can refer this example given by apple: http://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html

Categories : IOS

How do I detect a server host:port on the local network?
You can use the netstat command to find the open ports on a server (windows or linux) example on linux to find a java app server: netstat -anp | grep java Output - it was listening on port 8080: tcp 0 0 10.121.235.200:8080 0.0.0.0:* LISTEN 7051/java And as a side note, you may find this useful, if you have an idea it should be a certain port, you can check if there's a process running that is listening to it by using lsof: lsof -i :portNumber Example: lsof -i :80

Categories : Javascript

DNS redirect based on local or remote network connection
openVPN allows you to specify a DNS server along with the VPN-IP address. if you control this DNS-server, you can easily create an ACL that will return 10.8.0.1 for queries originating from the VPN network, and the public IP address when the queries come from outside of this network. in the openVPN config, you would add something like the following (assuming your DNS-server has the IP 10.8.0.53) push "dhcp-option DNS 10.8.0.53" how to configure your DNS-server will obviously depend on the actual server you are using (which you didn't mention). in bind9 it would look similar to the following: acl authenticated { 10.8.0.0/24; }; view "authenticated" { match-clients { authenticated; }; zone "mysite.com" { type master; file "/etc/bind/db.authenticated"; }; }; view "

Categories : Apache

How to send a Process.Start command over a local network (C#)
It depends on some things and some preparation on the WMI configuration, but Microsoft offers a good start in the MSDN documentation on how to start a process remotely. There's another simple solution, provided from the SysInternals tools. The psexec tool allows with some minor configuration the remote start of processes. This should be much easier for what you try to achieve.

Categories : C#

Connect to a Microsoft Access .mdb on a network from Xampp local
I have following for connecting to database file on local drive: $dbName = $_SERVER["DOCUMENT_ROOT"] . "IncludesfileName.mdb"; And those for connecting to database file on network drive: $dbName = "\\serverfolderapplicationfileName.mdb"; $dbName = "P:applicationfileName.mdb"; Followed by: new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$dbName; Uid=; Pwd;"); All of them are working.

Categories : PHP

Access Virtual WAMP Server on Local Network
Try this: Edit: your httpd.conf file ( use the menus to get to the correct file ) Look for this # onlineoffline tag - don't remove Add a new line AFTER Allow from ...... Like this Allow from 172.16.0.241 Or if you want to be able to see the wampserver from the whole subnet Allow from 172.16.0

Categories : Windows

How to run .exe file of swing application over Local Area Network?
What you're looking for is WebStart. Instead of serving the Swing application as an EXE over the network, you'll instead create a WebStart deployment of the application to allow other users to access the application.

Categories : Java

What code do I need to write a csv file from my raspberry pi to a folder in my local network?
Are you looking to have the file to be over written each time? If so why not write the file locally (on the pi) using the standard python csv package and then use something like shutils to copy the results to the network share?

Categories : Python

Use search output string to open a local network file
It looks as though you're trying to put the contents of the files into the href attribute of you anchor/link (<a>) tag. What you need to be doing, instead, is using a url which links to the specified file. This could possibly look like this in your implementation; print_r('<a href="' . $content . '">Open File</a><br />'); and the output would look something like; <a href="file:/C:/path/to/your/file.txt">Open File</a><br />

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.