以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 网址设置 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=157721) |
-- 作者:yyr -- 发布时间:2020/10/26 21:49:00 -- 网址设置 HttpServer.Close HttpServer.Prefixes.Add("http://218.241.208.63:9001/") HttpServer.WebPath = "d:\\web5" \'指定静态文件存储位置 HttpServer.Start() 218.241.208.63为我服务器外网ip,设置完后 请问是怎么回事?
|
-- 作者:有点蓝 -- 发布时间:2020/10/26 22:06:00 -- 使用内网ip启动服务。浏览器访问才使用外网ip访问 |
-- 作者:yyr -- 发布时间:2020/10/27 15:28:00 -- HttpServer.Close HttpServer.Prefixes.Add("http://*:9001/") HttpServer.WebPath = "d:\\web5" \'指定静态文件存储位置 HttpServer.Start() 老师,我使用通配符,不提示错误了,但是,外网ip访问不了,请问是啥原因呢?
|
-- 作者:yyr -- 发布时间:2020/10/27 15:31:00 -- 还有老师,我把网址改成内网网址,同样报错:报错:指定的网络格式无效。郁闷,我这网址没错啊 HttpServer.Close HttpServer.Prefixes.Add("http://192.168.1.188:9001/") HttpServer.WebPath = "d:\\web5" \'指定静态文件存储位置 HttpServer.Start() |
-- 作者:有点蓝 -- 发布时间:2020/10/27 15:34:00 -- ip肯定错了,填的是服务器的ip,不是客户端的。 如果是自己的服务器: |