Android Question Jop.Post to IPAdress

Martin Domian

Member
Licensed User
Longtime User
Hello!
I want to consume a web service that can be reached directly via an IP address and port. I always get invalid URL Error no matter how I enter the IP address:
whether 192.168.100.100:8000 or http:// 192.168.100.100:8000 or or or

I've also experimented with settings in the manifest. So far no success.

When I use the POSTMAN App, it works without any problems, as it does with other applications.

Does anyone have an idea, the code is so simple.


B4X:
    Private Job As HttpJob     
    Dim URL As String               
    Dim S As String = Data.As(JSON).ToString
    
    URL = "192.168.220.100:8000" 
    Job.Initialize("DataList", Me)   
    Job.PostString (URL,S)
 

JohnC

Expert
Licensed User
Longtime User
What is the exact error message you are getting?

Did you try the cleartext manifest option?
 
Upvote 0

Martin Domian

Member
Licensed User
Longtime User
I got it... Firewall. Sometimes it's so easy
Sorry, Thanks
 
Upvote 0

Similar Threads

Top