I'm using Xport Direct...
Here's my configuration:*** Channel 1
Baudrate 9600, I/F Mode 4C, Flow 00
Port 00081
Connect Mode : D4
Send '+++' in Modem Mode enabled
Show IP addr after 'RING' enabled
Auto increment source port disabled
Remote IP Adr: --- none ---, Port 00000
Disconn Mode : 00 Disconn Time: 00:00
Flush Mode : 00
My problem is the unstable connection to my own webserver using Xport Direct
It is only this -> C12.34.56.78
the problem maybe at my Xport Configuration or Coding for Connection
if I'm working on Twitter.. I'll use Port 10001, btw I have tried both ...port 81 and port 10001 for my own website...I read about problem with Firewall issue that make me set up port 81 here
http://www.glacialwanderer.com/hobbyrobotics/?p=15....i'm not sure though ..I have tested both port
Sometime it can connect ..sometime disconnect..but usually... it will disconnect
I'm using Dedicated IP...Shared Hosting...I'm using godaddy.com as my hosting ..the Deluxe one...my Xport Direct connection is just like in the ladyada example
I'm using Newsoftserial library..and ladyada AF_Xport library to make connection...bcoz it works perfect for twitter.com..and several website like ladyada.net..of course.... videocopilot.net..works fine
Here's my snippet for connection, do I need to send more data to Server after IP address and Port connection?
Snippet from main.cppret = xport.connect(IPADDR, PORT);
Snippet from AF_Xport.cppuint8_t AF_XPort::connect(char *ipaddr, long port) {
char ret;
xportserial.print('C');
xportserial.print(ipaddr);
xportserial.print('/');
xportserial.print(port);
xportserial.print('\n'); //I have tested both with \r or \n here
// wait for 'C'
if (serialavail_timeout(3000)) { // 3 second timeout
ret = xportserial.read();
if (ret != 'C') {
return ERROR_BADRESP;
}
} else {
return ERROR_TIMEDOUT;
}
return 0;
}
do I need to reply after connection can be made?
like ....
#define WEB_HOST "HOST:
http://www.example.net\n\n"
xport.print(WEB_HOST);
if connection can be made...everything works fine...to fetch data
here's the snippet of code for GET after connection
xport.print("GET ");
xport.print(PHP_PAGE_LOCATION);
xport.print(" HTTP/1.1\n");
xport.print(WEB_HOST);
Currently I'm not using .htaccess (in my web coding)to redirect someone who's typing IP number to my domain name...It'll just appear in browser as IP number..... like if you type "207.58.139.246" (ladyada.net) in browser, it'll just pint to "207.58.139.246" ..not resolve to domain name "www.ladyada.net".. but the content of web page is still the same