I knew from here https://sourceforge.net/p/gphoto/mailman/message/31970712/
gphoto can connect to a camera device via command:
e.g. try:
gphoto2 --port ptpip:IPADDRESSCAMERA --camera "PTP/IP Camera" -L
with IPADDRESSCAMERA the ip address of your camera.
but infact in windows platform, the camera can find a ptp server via wifi and registers the camera as a windows ptp device, then we can copy those photos to PC, So I wonder is there any function can do like this?
a media server using gphoto2 and pushing that to wifi ... not that I am aware of.