如果网站位于共享主机上,如何通过IP地址访问网站? [英] How to access site through IP address when website is on a shared host?

查看:318
本文介绍了如果网站位于共享主机上,如何通过IP地址访问网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编辑我的主机文件以将网站转发到另一个IP,但该IP位于共享主机上,因此IP不会将我带到我想要的域。有没有办法解决这个问题?

I want to edit my host file to forward a website to another IP, but that IP is on a shared host, so the IP doesn't take me to the domain I want. Is there a way around this?

即。
网站: http://somerandomservice.com/

Ping the网站,请访问:!67.225.235.59

Ping the site and go to: 67.225.235.59

但是他们是不同的网站

感谢

更新:试过NMAP,但无法找到正确的端口

Update: Tried nmap, but unable to find the correct port.

推荐答案

通过其IP号码来访问网站的一个可能的方法是使用波浪号〜然后你的用户名:

One possible way to access your website via its ip number is by including a tilde ~ and then your user name:

例如:

http://serverIPaddress/~cpanelusername

这篇关于如果网站位于共享主机上,如何通过IP地址访问网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆