Assigning ip.

Assigning ip. SearchSearch
Author Message
prsreek
New member
Username: Prsreek

Post Number: 3
Registered: 07-2010
Posted on Wednesday, August 04, 2010 - 04:39 pm:   

How to assign ip for nowsms.?
(for tcp/ip connection from webhost to nowsms server)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2396
Registered: 08-2008
Posted on Wednesday, August 04, 2010 - 06:00 pm:   

IP Address assignment is done at the operating system level.

And you don't just assign an address, you need to understand the TCP/IP netw ork that you are connecting to.

Based upon your question, I assume you are on a dynamic IP address, which is typical of ISP connections. Possibly you may also be behind a router which i s sharing that IP address among several machines.

NowSMS is a specialized type of web server. The issue you are facing is bigg er than NowSMS. You need to understand concepts of running a web server or s ervice over a dynamic IP address. The following Google search gives many go od references.

http://www.google.com/search?q=dynamic+ip+web+server

If you are behind a router, you also need to open a port on the router. Some of the info sources in the above search also describe this issue.

As I mentioned in previous queries, dyndns.com and no-ip.com are good dynami c DNS services for assigning host names to a dynamic IP connection.

I would suggest reading up on the links from the above search.
prsreek
New member
Username: Prsreek

Post Number: 4
Registered: 07-2010
Posted on Friday, August 06, 2010 - 10:32 am:   

i dont have dynamic ip adress.
i have a static ip
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2398
Registered: 08-2008
Posted on Friday, August 06, 2010 - 02:42 pm:   

Ok. Then I don't understand the original question. Why do you need to assign an IP to NowSMS, when it already has a static IP?

--
Des
NowSMS Support
prsreek
New member
Username: Prsreek

Post Number: 5
Registered: 07-2010
Posted on Friday, August 06, 2010 - 05:49 pm:   

yes i have static ip.
But how i will make the nowsms as a webserver?
Is there any other software needed for that(appserv)??
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2400
Registered: 08-2008
Posted on Friday, August 06, 2010 - 07:20 pm:   

The web interface is built-in. If you can connect locally to http://127.0.0. 1:8800, then you can connect remotely to http://ip:8800 (subject to firewall restrictions which may need to be opened depending on your network).
prsreek
New member
Username: Prsreek

Post Number: 6
Registered: 07-2010
Posted on Saturday, August 07, 2010 - 05:29 am:   

thanks,.....
prsreek
New member
Username: Prsreek

Post Number: 7
Registered: 07-2010
Posted on Sunday, August 08, 2010 - 05:12 am:   

Now i have to configure the php script.

i attached the form html and sendsmsscript.php

plzz show me in sendsmsscript.php that is,which line i should edit.

$x = SendSMS("127.0.0.1", 8800, "username", "password", "+44999999999", "Test Message");
echo $x

is this line?

127.0.0.1 = mY static ip
8800 = port
username = account for nowsms user
password = password
what about this "+44999999999"

text/html
index.html (0.5 k)
application/octet-stream
sendsmsscript.php (1.7 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2403
Registered: 08-2008
Posted on Monday, August 09, 2010 - 03:21 pm:   

In the example, "+44999999999" is the number that a text message is being sent to, and "Test Message" is the text of that message.
prsreek
New member
Username: Prsreek

Post Number: 8
Registered: 07-2010
Posted on Wednesday, August 11, 2010 - 03:10 pm:   

HOw to open a port?
i am using windows xp
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2411
Registered: 08-2008
Posted on Wednesday, August 11, 2010 - 10:40 pm:   

It depends on where you need to open a port. If you are behind a firewall, it is done at the firewall.

If you are on a Windows XP machine that has a direct internet connection with a static IP, it would be done in any firewall software that you are running (some anti-virus software includes firewall capabilities).

There is also a built-in Windows firewall, which you will find in the Windows Control Panel as "Windows Firewall".

If you suspect a firewall problem, before trying to define exceptions, try to verify that it is a problem. Temporarily turn the firewall off, try your connection attempt, and then turn the firewall back on.

If the connection succeeds while the firewall is off, an exception for the port needs to be added to the firewall to allow the inbound connection.

If the connection fails while the firewall is off, then the problem is elsewhere. You might not really have a public static IP address ... or your ISP might block all or most inbound connections.

I've had another customer suggest using a utility called PFPortChecker to test open ports ... you might want to look at that.

--
Des
NowSMS Support