Page 1 of 1

Port 80 (HTTP) Connection Timeout

Posted: Thu Aug 18, 2011 7:30 am
by BMillikan
I am trying to connect to a device on port 80 (HTTP) using TCP from the NetBurner MOD5234. However, I have used a timeout of up to 2 seconds and I keep getting a timeout. The code is as follows:

Code: Select all

	dbprintf("Connecting to %s @ %d...",m_ipAddress, 80);
	m_fd = connect(AsciiToIp(m_ipAddress),0,80,TICKS_PER_SECOND*2);
	if( m_fd < 0)
	{
	   dbprintf("Connection Failed (%d)\r\n",m_fd);
	   //m_fd = 0;
	}
	else
	{
		dbprintf("Succeeded!!!!\r\n");
		cmdReady = true;
	}
It's fairly straightforward. This code works for port 23 on another device, but it doesn't work for port 80. I simply wish to issue some "GET" commands on port 80 using the Netburner.

Brian

Re: Port 80 (HTTP) Connection Timeout

Posted: Thu Aug 18, 2011 2:34 pm
by rnixon
Sounds like a job for.......wireshark. Or, you could try connecting through a telnet session just to make sure its possible.

Re: Port 80 (HTTP) Connection Timeout

Posted: Sat Aug 20, 2011 1:43 pm
by tod
A little more detail would help us give you a better answer. Is the "device" a PC? Is the device under your control? Since you can reach port 23 the device is reachable, but can you verify that port 80 is open and responding on the device. Is the device on your LAN or are you trying to reach it over the internet? Is there anything between you and the target acting as a firewall? Have you used your PC to do the same thing and it's just the NetBurner that can't reach port 80? Etc.