w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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#

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

Idea on building a live, serverless multi-user local-network-shared database with SQLite
It seams to me that you're trying reinventing the wheel! Your application overhead, such as copying big database file, will for sure overrun ultra tunned SQLite engine. And a lot privacy concerns should arise from this approach (maybe not in your case, but in a isolated server/client environment). Also, your "custom RDBMS" will for sure break ACID compliance. At last, your requirements seams to fit very well in Situations Where SQLite Works Well.

Categories : Sqlite

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

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

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

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

Social Sharing on various network by single click
What I would first suggest is to take a look at the various social network's APIs in order to see what's possible on each one and how to implement the various sign-in protocols. Next you should present in some sort of nice way to the user a login prompt for each network, which allows the freedom to choose which networks they want associated with your app. Then I would suggest you research how each you can post to each network. Some require a prompt from the user, and some you can post directly to without the user's consent. Identify which are which and when you allow the user to post something, allow them to select which ones the want to post to, and then present the prompt networks last.

Categories : IOS

connecting to mac localhost via windows computer sharing the same network
Providing that you edited the hosts file in Windowssystem32driversetchosts, it should normally work most of the time. If it doesn't, the only thing I can think off is that it it sometimes necessary to reset and clear the cache in Windows 7. You can have a look at Windows 7 refresh DNS for guidance. There is a step by step post here.

Categories : Apache

Sharing Data Between two Android Apps using Network Sockets
I don't think using sockets can solve your problem. Only one app can be active at a given time, and the connection won't work. Unless you create some sort of service, but this approach seems wrong. I believe you have 2 basic options in front of you: A server that both apps communicate with. Writing information to the disk in a globally readable place. The server option is better IMO.

Categories : Android

How to make a NSWindow act like a Social Network Sharing Sheet?
Create a new NSView (derive your own class to be able to implement drawRect:) and make it semi transparent. Put it over all your other views in the window. This will prevent mouse events to reach other views and achieve the dimmed look. Then use a modal window for the "social sheet".

Categories : Objective C

TcpListener and TcpClient sharing local port
I think you might not fully understand the address port client server architecture. TcpListener is listening to any connection on address and port. After connection established you can use the "Socket" to receive and send messages from the client and server both. example: 0.0.0.1 is machine A. 0.0.0.2 is machine B. you can put a TcpListener that is listening on port 8000 on machine A. When the TcpClient on machine B will make try to connect machine A on port 8000 the TcpClient on machine B will get a generated (by the OS) port. and then you will have a connection 0.0.0.1:8000 -> 0.0.0.2:3587(Generated port) - so you dont need to worry for the client listening port.

Categories : C#

how to protect local resources against unathorized transfers (sharing)
The first step is to put the files in a protected (by apple) location and make sure that location is not backed up in iTunes by the user: //Get the Library path (not visible to user NSString *path = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0] //Tell apple not to back it up in iTunes +(void)addSkipBackupAttributeToPath:(NSString*)path { u_int8_t b = 1; setxattr([path fileSystemRepresentation], "com.apple.MobileBackup", &b, 1, 0, 0); } Now this doesn't help with jailbreaking and other, more devious, things users can do to gain access to these locations. The next thing would be to encrypt the files individually and dynamically decrypt them when they are going to be used. This is the most processor intensive way, but quite

Categories : IOS

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

Is it possible to secure local database data when selling an offline (local installation) web app?
You cannot stop that user from stealing the data but it should be possible to encrypt the local data with JS in case the laptop is stolen etc. To do this you would need to prompt the user for the encryption key or use some other method... It should obviously not be stored in the local database itself

Categories : Database

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#

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

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

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

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

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

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

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

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 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

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#

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 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

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

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

AS3/Flash/Air: Database sharing
You can write to the file, but it won't work if multiple application tries to write the file at the same time. And, lets say app A changes one data, and app B changes another data. App A writes the new XML, then B writes its own version of the XML without acknowledging the changes from A. The changes from A are lost. One way to go here is SQLite. Natively supported in AIR. But then again, you can not write the file at the same time from 2 different apps. AIR is supposed to handle those writing issues, but i already experienced some problems with it. A much better way to go here would be setting a SQL server up (or any other real DB server, i am no expert) and some php interface. Maybe AMFPHP : http://gotoandlearn.com/search.php?q=amf, or simply use urlloaders ...

Categories : Actionscript

Open Local Area Network (LAN) Settings window by code
I don't know if you could network settings because if you have more than one LAN including wireless ones which one you want to open? So, you better off opening the Network Connections settings instead and let the user decide which one to open. Thus you could use the code below to open Network Connection settings like: ProcessStartInfo startInfo = new ProcessStartInfo("NCPA.cpl"); startInfo.UseShellExecute = true; Process.Start(startInfo); Update: You could not call directly LAN Property Settings using any .cpl program. However, there is an unconventional way using your own code and by using SendKeys like this: System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo(); proc.FileName = @"C:\Windows\System32\RunDll32.exe"; proc.Arguments = "shell32.dl

Categories : C#

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

How to connect to local database through webpage that is not local using php
You can connect to any server with the client, restricted to local/network firewalls and routing tables. The server on the other side has the same restrictions (firewall, network routing) + a few security tweaks: user table might only accept specific hosts bind-address options (in newer versions) limit access for ip/interface 0.0.0.0 = all are allowed in older versions of the mysqld this option is called skip-networking to allow tcp connections by default mysqld listens only locally or through unix socket The server being not exposed to the WAN, you'd either change this or use VPN to connect.

Categories : PHP

Sharing Image through nfc and storing into database
Check out this sample that does what you want: http://code.msdn.microsoft.com/wpapps/PixPresenter-Code-sharing-39ed631f Essentially the idea is to use PeerFinder (like you started with) and then to open a Socket between the two peers. The relevant code is in PeerConnector.cs.

Categories : C#

Redirect domain name mapped with external IP (modem) to a host in its local network
If you want to redirect my domain to the particular host you need to setup NAT-Virtual Server Setup . here you need to map remote port to internal map. In above image IP address is my IP of my host and Default address is my router's IP address Now you have configure NAT in you router as bellow. in above image server IP is you host IP address. I am using D-Link router so this Image is according to that if you are using some different router then you might have different view. After configuring this when you type EXTERNAL_IP:80 your request will be forwarded to application that is running on you host with that port

Categories : Networking



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