I'm currently using SIM868 to make a GPS tracker, I wanted to know how to test tcp/ip protocol with a server. I do not have a server but got a website and a wifi connection(DIR-600M Router) , Is there any way I can use a virtual port listener or something to test the communication?

  • \$\begingroup\$ In principle yes, but only in one direction. You'll have to get the SIM868 to make a connection to your web site on port 80 and send it a GET request, and get your web site to respond with a simple page. \$\endgroup\$ – Finbarr Jan 9 '18 at 10:00
  • \$\begingroup\$ can i use port forwarding in my router to do it? \$\endgroup\$ – Arun Joe Cheriyan Jan 9 '18 at 10:24
  • \$\begingroup\$ A web site's job is to service HTTP requests from clients, which is surely how you want your tracker to work anyway. Making it do the opposite is a massive amount of work and way off-topic for this site. \$\endgroup\$ – Finbarr Jan 9 '18 at 10:33
  • 2
    \$\begingroup\$ Unfortunately the question is unclear IMHO (perhaps translation / terminology issues?) e.g. you say that you don't have a server, but you do have a website. When a computer is servicing incoming HTTP requests (i.e. a website) that computer is a server (even if it is a tiny RPi etc.) as the incoming requests coming from HTTP clients like the SIM868 (client/server model). So your statements seem to contradict each other, making it unclear :-( Since this seems to be a networking question (the SIM868 is just a TCP/IP client) perhaps this should be migrated to Network Engineering stack? \$\endgroup\$ – SamGibson Jan 9 '18 at 14:39

Well, I think your best bet would be to get a virtual private server somewhere. But in the interim, you can probably test it by attempting an HTTP request on some other publicly accessible website.

  • \$\begingroup\$ Can you give me an example for 'publicly available website.'? and I'm using TCP from the GSM module. \$\endgroup\$ – Arun Joe Cheriyan Jan 10 '18 at 18:33
  • \$\begingroup\$ Google? Really, any website that you can load up in your browser should work. \$\endgroup\$ – alex.forencich Jan 10 '18 at 18:53
  • \$\begingroup\$ Maybe 'accessible' would be a better word \$\endgroup\$ – alex.forencich Jan 10 '18 at 18:53
  • \$\begingroup\$ then it should work with the website that I owns know? and what is the port number I should be using? \$\endgroup\$ – Arun Joe Cheriyan Jan 11 '18 at 6:17
  • \$\begingroup\$ Sure, if you have a publicly accessible website, then it should work. HTTP uses port 80. \$\endgroup\$ – alex.forencich Jan 11 '18 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.