SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By David Kent
#140490
I'm using the SpiUartTerminal code.
I've successfully connected the Wifly with my router:
Code: Select all
set wlan auth 4
set wlan phrase password
join SSIDname
i get:
Code: Select all
Joining FOX now..
<2.32> Associated!
DHCP: Start
DHCP in 1947ms, lease=3600s
IF=UP
DHCP=ON
IP=192.168.1.75:2000
NM=255.255.255.0
GW=192.168.1.254
At this point I can use telnet 192.168.1.75 2000 from my computer to connect with Wifly.
Now i change the localport to 80 with:
Code: Select all
set ip localport 80
AOK
I confirm the setting with:
Code: Select all
get ip

IF=UP
DHCP=ON
IP=[b]192.168.1.75:80[/b]
NM=255.255.255.0
GW=192.168.1.254
HOST=0.0.0.0:2000
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x63
BACKUP=0.0.0.0
<2.32> 
It seems that everything OK, but now I can't preform telnet 192.168.1.75 80.
I got this from my terminal's computer:
Code: Select all
telnet 192.168.1.75 80
Trying 192.168.1.75...
telnet: connect to address 192.168.1.75: Connection refused
telnet: Unable to connect to remote host
I'm stuck here.
What am I doing wrong? At this point I can't test the HTTP connection.