How could I set a destination IP address (private)?


#1

Hi,
I used the following commands and is able to get a response (its IP address) from my modem M1306B:

AT+CMEE=1
AT+CGDCONT=1,“IP”,“APN_NAME”
AT+CGATT=1
AT+CGACT=1,1
AT+CGPADDR=1

the last command returns "+CGPADDR: 1,“192.168.104.220”.

But as I’m trying to send data to another wavecom modem with another private IP address on the same network. Can anyone advise me how to do it?
Or should I be using the AT+WIPBR commands?
My application is to send data from an instrument over GPRS to a PC listening through a defined port. I have a modem connected at the PC with another SIM card with a IP address.


#2

Hi!
Not sure if you can use WIP commands with this module. Here is how I do it with fastrack supreme:


client configuration - using a q24pl


+CREG: 1,2

OK

+CREG: 1
at+cgatt=1
OK

+CGREG: 2

+CGREG: 1
at+wipcfg=1
OK
at+wipcfg=3
WIP Soft v311 on Open AT OS v314
Dec 13 2007 10:56:52 WIPlib:v3a05 WIPSoft:v3a02
OK
at+wipbr=1,6
OK
at+wipbr=2,6,11,“empresarial.itelcel.com
OK
at+wipbr=2,6,0,""
OK
at+wipbr=2,6,1,""
OK
at+wipbr=4,6,0
OK
at+wipbr=3,6,15
+WIPBR: 6,15,“10.204.45.189”

OK
at+wipcreate=1,1,80,“10.204.45.231”,80
OK

+WIPREADY: 1,1
at+wipdata=1,1,1
CONNECT

OK
at+wipdata=1,1,1
CONNECT


#3

I don’t think there’s any guarantee that these IP addresses will be able to “see” each other - even if they are on the same GPRS network?

You need to either get at least one public IP address, or go through a “server” with a Public IP address.

Or maybe your provider can offer some sort of VPN or other solution…?


#4

Hi aisys,
You can send the IP of the modem that set up TCP server (connected to PC) to the other modems (that set Client TCP) via SMS whenever this modem get a new IP.
ttt


#5

But that won’t help if it’s a Private IP address, will it?!


#6

Hi all,
Yes it will. I have tried with two modems, one is tcp server and the other is tcp client (but both of them are the same operator)
ttt


#7

“I have tried” is a long way different from “this will work for anyone, anywhere”, isn’t it?

I suspect you were just lucky?

As I said before, I don’t think there’s any guarantee that this will work - is there?


#8

Hi all,

That might depend on the operator. For example Vodafone GR said that it is not possible, since there are access lists blocking direct connections from two modems. I had to use a real ip server.
But they suggested one more solutions that I did not have time to check since the server was faster. They can provide to customers a different APN name, and a kind of VPN between modems (actually between specific sim cards using those modems). So you could start by asking that. It is not very expensive and you do not have to have hundreds of modems to qualify for an APN as they suggested, but it did not mind getting more information.

Good luck
T.O.XA.DI.


#9

Good point: it’s not just a matter of the technicalities of IP networking - it also depends on the policies of specific operators!

Yes, there are many companies (not just the network operators themselves) offering services like that.