Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Connecting to a website via its IP?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
bhpianist
Cheater
Reputation: 1

Joined: 17 Apr 2010
Posts: 38

PostPosted: Sat Jul 03, 2010 6:18 pm    Post subject: Connecting to a website via its IP? Reply with quote

So I'm just wondering, if I get a website's IP address how come most of the time I can't just connect to it? For example, if I try to visit my site through the IP it always gives me a "can't connect" error. ?
Back to top
View user's profile Send private message MSN Messenger
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Sun Jul 04, 2010 4:11 pm    Post subject: Reply with quote

Thats weird, try using a different browser.
Back to top
View user's profile Send private message MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sun Jul 04, 2010 5:34 pm    Post subject: Reply with quote

Since different websites may be hosted at a single IP address the host will check the domain name that is sent in the HTTP header to determine which website is being viewed. So that might explain why it will deny "direct connections" to that IP.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Mon Jul 05, 2010 11:38 am    Post subject: Reply with quote

Yeah, as tombana, the requested website might be written in the HTTP headers. You need to send eg.
Code:
Host: google.com
(which is mandatory IIRC) to get the specific website, if there are multiple sites hosted on the same IP.
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Mon Jul 05, 2010 9:23 pm    Post subject: Reply with quote

@Jani Usually if there are many hosts on one shared IP address, it is still possible to connect by IP.

For instance, we have IP: 100.600.10.30
Our site name: www.example.com

We connect to www.example.com by doing: 100.600.10.30/~example/. All we do is take the first 7 characters from the site name and add just like the example to get a connection to the site if the IP is shared.
Back to top
View user's profile Send private message MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Tue Jul 06, 2010 4:24 am    Post subject: Reply with quote

iPromise wrote:
@Jani Usually if there are many hosts on one shared IP address, it is still possible to connect by IP.

For instance, we have IP: 100.600.10.30
Our site name: www.example.com

We connect to www.example.com by doing: 100.600.10.30/~example/. All we do is take the first 7 characters from the site name and add just like the example to get a connection to the site if the IP is shared.

Jani is correct: the 'Host' field in the http headers is mandatory since HTTP/1.1
So the server shouldn't have to show any webpage when the host is not specified. Many servers however will also work without specifying a host field.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites