Click here to Skip to main content
15,112,662 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a sms send application web based i am working it perfectly on my localhost but as i upload it my local IP not accessible how can i use and working with networking local IP as i have a IP Address locally 192.168.10.5 and as i want to send a sms by using mobile phone it is not working as phone IP 192.168.10.3


mysinger.somee.com this is link of my website

What I have tried:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Try

host = "http://" + txtserver.Text + ":8090"
           username = txtuid.Text
           password = txtpassword.Text
           url = host + "/SendSMS?" & "username=" & HttpUtility.UrlEncode(username) _
                               & "&password=" + HttpUtility.UrlEncode(password) _
                               & "&phone=" + HttpUtility.UrlEncode(tbReceiver.Text) _
                               & "&message=" + HttpUtility.UrlEncode(tbMessage.Text)

request = DirectCast(WebRequest.Create(url), HttpWebRequest)

           response = DirectCast(request.GetResponse(), HttpWebResponse)

           MsgBox("Response: " & response.StatusDescription)
           Label1.Text = url
           Label2.Text = "Send sms Secsessfull"


Catch ex As Exception
           MsgBox(ex.ToString)
           Label1.Text = "SMS Not sent Please Check Your phone Connected or Configaration setting"
           stt = "<br> <div class='alert alert-danger Fade'><a href='#' class='close' data-dismiss='alert'>×</a>Not Successfully Sent Your Message</div>"

       End Try
Posted
Updated 23-Sep-19 5:21am
Comments
Richard MacCutchan 22-Sep-19 12:23pm
   
You cannot access local IP addresses from outside your WiFi network.

1 solution

You have to be able to access the network. As Richard said, you can't access your local IPs from a site on the internet. You'll need to rethink what it is you are trying to do.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900