what port or ports are used for File sharing in windows?
what port or ports are used for File sharing in windows?
回答1
I've seen all of these..file sharing related
UDP-137, UDP-138, TCP-139,TCP-445
And possibly TCP port 135, though that may be something to do with something called "RPC" (source (archived)).
on an windows 7 machine all of those are listening. Some are related to NETBIOS so you can do start...\\compname
If the server has NBT enabled, it listens on UDP ports 137, 138, and on TCP ports 139, 445. If it has NBT disabled, it listens on TCP port 445 only.
And this site (archived) mentions:
"In Windows 2000/XP/2003, Microsoft added the possibility to run SMB directly over TCP/IP, without the extra layer of NetBT. For this they use TCP port 445. "
So in 2K,XP,2003...and I suppose Win 7,8, it is possible to run file sharing on only port 445 But you'd be doing start...\\ip
rather than start..\\compname
回答2
If file transfer is via FTP - TCP/21, in case of SFTP - TCP/22
445端口
445端口是一个毁誉参半的端口,有了它我们可以在局域网中轻松访问各种共享文件夹或共享打印机,但也正是因为有了它,黑客们才有了可乘之机,他们能通过该端口偷偷共享你的硬盘,甚至会在悄无声息中将你的硬盘格式化掉。
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2019-03-15 FAQ Flyway
2019-03-15 Baseline
2019-03-15 First Steps: Command-line
2019-03-15 Concepts-->Migrations
2019-03-15 How Flyway works
2019-03-15 Why database migrations?
2019-03-15 Flyway Overview and Installation