These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Creating a socket and connecting to CREST

Author
Boris Smith
Caldari Provisions
Caldari State
#1 - 2016-09-19 09:39:16 UTC
Ok I may be being a tad stupid here but bare with me as I am new to this.

To my understanding before being able to send a message request to crest-tq.eveonline.com, I need to open a socket to them first.

I am using C, so I am using the winsock2.h library.

The method I have been following is to connect via converting the host name into an IP, using the information to check If a socket exists, then I attempt to connect to the socket. If success I then send a message using HTML and hold open the socket for a response.

Sounds good and works for the usual test sites, i.e www.google.com, www.eve.com etc

However when using crest-tq.eveonline.com the program finds the IP, and confirms that there is a socket, but it fails on an error code of 10060, which is a connection time out.

I am using a TCP connection (as I thought would be required due to a file request)

The IP for crest-tq.eveonline.com was: 87.237.34.201


Now Looking at this it seams to me it will be some stupid little problem but after a few hours trawling the web I cannot figure it out so any help would be most welcome.
Salgare
Center for Advanced Studies
Gallente Federation
#2 - 2016-09-19 14:57:04 UTC  |  Edited by: Salgare
It needs to be a https connection.

Try this from your browser

https://crest-tq.eveonline.com/

verses this
http://crest-tq.eveonline.com/

use the host name not the ip address.

There in lies your connection timeout.

c is going to be painful
Boris Smith
Caldari Provisions
Caldari State
#3 - 2016-09-19 15:16:58 UTC
Ah brilliant, thank you for the information.

After checking online with is knowledge it seems that I needed to change the port from 80 to 443