简体   繁体   English

如何通过iOS中的IP地址将iPhone连接到Windows PC?

[英]How to connect iPhone to Windows PC through IP address in iOS?

I am doing one demo for connecting iPhone to Windows PC for sending files and text to PC from iOS Device. 我正在做一个演示,用于将iPhone连接到Windows PC,以便从iOS设备向PC发送文件和文本。 Can anyone give me a solution how can I approach it? 谁能给我一个解决方案,我该如何解决?

You can start to study the socket connection. 您可以开始研究套接字连接。 With a TCP connection you can send and receive data to / from PC. 通过TCP连接,您可以向PC发送数据或从PC接收数据。 Another way (to avoid the TCP connection) is to use UDP message: in this case you should write a UDP listener in your iOS App that listen incoming message on a specific udp port. 另一种方法(避免TCP连接)是使用UDP消息:在这种情况下,您应该在iOS应用中编写一个UDP侦听器,以侦听特定udp端口上的传入消息。

look at his link: iPhone TCP/IP Socket Server/Client Program 看一下他的链接: iPhone TCP / IP套接字服务器/客户端程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Windows PC调试ios.iphone的webite - How to debug webite for ios.iphone with windows PC 如何通过Mac终端获取连接的iPhone IP地址 - How to get connected iPhone IP address through mac terminal 如何在 ios iphone swift 中获取热点连接设备的 IP 地址和 MAC 地址? - how can i get hotspot connected devices ip address and MAC address in ios iphone swift? 在iOS上查找Windows本地主机名的IP地址 - Finding IP address of windows local hostname on iOS 如何使用AFNetworking通过iPhone模拟器中的VPN IP地址进行连接? - How do I connect over a VPN IP Address in iPhone Simulator using AFNetworking? 将Iphone与启用wifi的设备连接(例如具有IP地址的加热器) - connect Iphone with wifi enabled device(Example heater having IP address) 如何使用 iOS 12+ 中的 http 连接到硬编码的 IP 地址 - How can I connect to a hard coded IP address using http in iOS 12+ 如何获取iOS中用于连接的确切IP地址? - How can I get the exactly ip address which used to connect in iOS? iOS Swift:在已连接的Iphone上查找Macbook计算机名称/ IP地址 - iOS Swift: find Macbook Computer Name/Ip Address on connected Iphone iOS模拟器无法连接到本地IP地址 - iOS simulator cant connect to local network IP address
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM