How to get the local area network shared devices and files? - iphone

how to list the network shared devices over LAN from IPad.Is it possible to list the shared devices programmatically using objective-c ?

How are you connecting the iPad to the network and what authentication is the network using? In general this would require a backend service to connect to the network and provide the network information over https to the iPad.

Using samba library we can access the LAN device files or using sockets with port of 445 can access the LAN machines.

Related

How to access shared drive from internet - openmediavault

I am using OpenMediaVault for NAS management installed on Raspberry Pi. I am able to access my shared drive on my network. I would like to access it from the internet. I have static IP connection and have done the port forwarding. I am able to access the OpenMediaVault configuration page from other network, but cannot access the shared drive.
Please help!
Thanks in advance.
I'm sure there should be multiple ways to do this. But following is how I access my NAS on Raspi from the internet.
Registered a free domain on DuckDNS for Private VPN
Used the domain created in #1 to set up a split tunnel Wireguard VPN server using PiVPN on the RaspberryPi
Set up a split-tunnel VPN profile
Forwarded port 51820 (default port for Wireguard) on the router
Installed Wireguard on my phone and Mac and set the connections
Whenever I'm outside the home network, I just connect to the VPN and I can access my shared folders.

Cannot connect (SMB nor NFS) from wifi to wired on LAN - Arris router (Cox)

Windows/Linux on WiFi side of LAN can use port 80/web sites on my Linux server on wired side of LAN, but not NFS shares or SMB shares (Samba).
Is my Arris router blocking the traffic? If both/all systems are wired, everything works/connects. Does anyone know how to make file sharing work?

Local Debian Server in VM and connect with iphone app

How is a local Debian server setup so that an iphone app in the simulator can communicate with it?
I want to send files and data to the server from an iphone app. and for now I would like it to be locally using the simulator, rather than a device using a router.
Enable NAT and you will find one network on the vm and two on the host computer, being one, a virtual network shared between the two of them. Then simply use their IP addresses as they appear in ifconfig.

Connecting to a local network through iOS-device debugging

I have an application that uses a local ip-adress to connect to a soap based web-service. It works perfectly fine to debug through the simulator, however, when trying to debug the project on an actual iPhone-device it cannot reach the local network's soap-service.
Has anyone run into this and know if this is actually possible or do we need WiFi to be able to debug to a non-local ip-address, or is even that possible?
You can not access your local ip address from 3G only on wifi. You access it from 3G you need an public ip on the server that you have the web service.
If you are connected to a common wifi network say eg office wifi or home network.
You can check the local ip of your computer for that network by ipconfig of ifconfig.
Use same ip on app. You will be able to access.
Cheers.

Online peer to peer connection

Here i am developing an application which uses peer to peer connection. i am able to communicate using WIFI and Bluetooth connection. i.e a devices with in a same local network are able to communicate with each other.
Is it possible to communicate online using Bonjour service or any other option for online communication.
Please help me...
Bonjour works only in the local network, because the devices communicate via multicast
DNS (IP: 224.0.0.251). You could use Wide Area Bonjour with the cooperation of a DNS server.
Under http://www.dns-sd.org/ServerSetup.html you find a description how to set that up on Unix.
Other than that I don't think there is any special support by Apple. You have to set up some kind of server on the Internet yourself.