Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Connecting Sim508 to socket server

Status
Not open for further replies.

alzomor

Advanced Member level 2
Joined
Jun 9, 2005
Messages
674
Helped
39
Reputation
78
Reaction score
8
Trophy points
1,298
Location
Germany
Activity points
6,406
sim508 programation

HI

I am using SIM508 to connect to My socket Server.
I got a TCP socket server and client c source code, compiled and tested it on the LAN and it was working fine

then I set my ADSLRouter to allow port forwarding to my server PC on port 5000

afet that I issued my AT commands to connect to the server using GPRS
as follow
at+cgdcont=1,"IP","internet.vodafone.net"
OK
at+cstt="internet.vodafone.net","internet","internet"
OK
at+ciicr
OK
AT+CIFSR
10.253.18.158
AT+CIPSTART="TCP","my IP address","5000"
OK
but I can't get connected to the server and the server program don't detect any connection from clints.

So what's the problem in my work

note:
*when I connect to google on port 80 it works
*I get the WAN IP for my router using dyndns client program


salam
Hossam Alzomor
 

sim508 code

Can you connect to the server using a PC that's outside the LAN?
 

sim508 can not connect to pc

Hi

I test it now from outside LAN and nothing is working.
I am using port 5000 and get the WAN IP address
and set the ADSL router to accept port forwarding on port 5000

but it's not working, so what should be the problem?

Salam
Hossam Alzomor
www()i-g()org
 

sim508 software

Hi

also I tried to ping my WAN IP address from outside , and it don't ping.
but When I try to ping wan IP address from inside the lan it works.
Dose any one have an answer?

Salam
Hossam Alzomor
www()i-g()org
 

This is definitely your firewall that is blocking external requests or not redirecting them correctly.

The adsl router you mentioned sounds like a hardware device, look not only for forwarding the port 5000 to your internal PC's ip ( which I ques is the one listening on port 5000), but also look for allowing incoming requests to port 5000.

Also, if the internal PC that is listening is running windows, probably it has it's firewall turned on which is also blocking the port 5000 - the firewall could be the one that ships with windows (build in) or one that comes with antivirus software you might run.

In any way you should be able to do a telnet on WAN ip 5000 from a remote machine before you go and try with the device .

BTW I just tested your AT seq with my sim508 board and it works just fine.


Good luck.
 

Thanks sulio for help.

yes you are right,
the problem was that the ADSL router don't save configurations automatically.
so each time I est nothing works.
after some trials I could find the save command for the ADSL routes and it's working fine now after configuring the port forwarding

Salam
Hossam Alzomor
www()i-g()org
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top