Bind to use Internal IP

Bind to use Internal IP SearchSearch

SMS & MMS Technical Forum » NowSMS Support - MMS & Advanced Issues (Product Support Only) » Bind to use Internal IP « Previous || Next »
Author Message
Jordan
New member
Username: Jordan9284

Post Number: 1
Registered: 07-2019
Posted on Tuesday, July 30, 2019 - 08:26 am:   

Hi there,

We would like to configure a Bind to use a specific IP address

From what I have been told we can add BindIP={New internal IP address} to the now sms config file

However when doing so I cannot see the connection attempt going via the IP

Please advise
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6029
Registered: 08-2008
Posted on Tuesday, July 30, 2019 - 09:31 pm:   

Hi,

It is best to do this through the configuration interface.

The web interface for SMS (and SMPP) allows its IP address to be set on the "Web" tab of the configuration program. It updates BindIP= under the [SMSGW] section of SMSGW.INI.

The MMSC IP address is set on the "MMSC" tab and updates IPAddress= under the [MMSC] section of MMSC.INI.


The netstat -a -n command can be used to verify what IP/ports are being listened on.

--
Des
NowSMS Support
Jordan
New member
Username: Jordan9284

Post Number: 2
Registered: 07-2019
Posted on Wednesday, July 31, 2019 - 07:43 am:   

Hi there,

Are you referring to: https://www.nowsms.com/doc/web-menu-interface

if so this doesn't allow me to configure a SMSC connection to use a fixed internal IP address to send traffic over.


I have 2 network cards in my NowSMS server, I would like to configure one SMSC connection to ONLY use one of the network cards on the server. Is this possible?

thanks
Jordan
Jordan
New member
Username: Jordan9284

Post Number: 3
Registered: 07-2019
Posted on Wednesday, July 31, 2019 - 08:10 am:   

Looking at this post here it indicates that this is possible

https://support.nowsms.com/discus/messages/1/73682.html

Please see the attached image of the config, this doesnt appear to work.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6030
Registered: 08-2008
Posted on Wednesday, July 31, 2019 - 10:42 am:   

Hi Jordan,

I am referring to the desktop configuration program, not the web interface.

But, I was also referring to the IP address used for listening by server interfaces.

You appear to be referring to the IP address that the SMPP client uses, and your example is correct. That one connection would connect out from 10.0.10.103 as its source IP.

What is the NowSMS version?


Des
NowSMS Support
Jordan
New member
Username: Jordan9284

Post Number: 4
Registered: 07-2019
Posted on Wednesday, July 31, 2019 - 01:09 pm:   

Hi Des,

the version of NowSMS is;

V2017.04.07
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6031
Registered: 08-2008
Posted on Wednesday, July 31, 2019 - 10:12 pm:   

Hi Jordan,

We are not aware of any issues with this setting in that version. (Except if EnableIPV6=Yes is present in SMSGW.INI, that might cause a problem.)

Make sure you are not accidentally editing a duplicate SMSGW.INI (open command prompt, cd \ to root directory, and use dir /s smsgw.ini to search).

Differences in default location of this file in different versions of NowSMS, and Windows security can cause issues.

10.0.10.103 is locally bound as an IP of the server running NowSMS, correct?

How are you determining the wrong IP is being used?

--
Des
NowSMS Support
Jordan
New member
Username: Jordan9284

Post Number: 5
Registered: 07-2019
Posted on Thursday, August 01, 2019 - 07:27 am:   

Hi Des,

We don't have that setting in place on NowSMS

I have been modifying the SMSGW.INI file that is in use.

We have a network card that has been configured on the NowSMS server with the IP 10.0.10.103 assigned.

I have then captured the network traffic using Wireshark

Traffic to the expected destination is shown coming from the other internal IP address.

Is there anything else that I can look at?

thanks
Jordan
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6032
Registered: 08-2008
Posted on Monday, August 05, 2019 - 04:19 pm:   

Hi Jordan,

Sorry for the delay in response. I wanted to test this with the same version, v2017.04.07.

The BindIP= setting seems to be working for me. I have an SMPP connection to 192.168.0.40:9000, so there is a [SMPP - 192.168.0.40:9000] section in SMSGW.INI.

If I add or change a BindIP= setting under that section header, I see that NowSMS sends an unbind, disconnects, and then connects again with the BindIP value as the source.

I'm using netstat -a -n to look at active connections.

Do you see a disconnect when you update this setting? I know may note about editing the correct SMSGW.INI seems basic, but there are situations where Windows security policies can do strange things and creates copies under a VirtualStore directory, so the dir /s advice is the quickest way to make sure this is not happening.

--
Des
NowSMS Support
Jordan
New member
Username: Jordan9284

Post Number: 6
Registered: 07-2019
Posted on Tuesday, August 13, 2019 - 02:12 pm:   

Hi Des,

We are all good to go - It was me

didnt install the wireshark driver for the NIC!

Its all working as expected now

thanks for the help

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics