I am facing issue with IBM API connect when I configure the API connect using static IP address - ibm-cloud

I am facing issue with IBM API connect when I configure the API connect using static IP address but it is working fine with DHCP IP address.
Some logs I found in logger are
[org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.unpublishContextAsOsgiService]
Unpublishing application context OSGi service for bundle
spring-osgi-web-extender (org.springframework.osgi.web.extender)
java.net.ConnectException: Connection refused
[org.springframework.osgi.web.deployer.support.AbstractWarDeployer.deploy]
Successfully deployed bundle [cmc (com.ibm.apimgmt.cmc.war)] at [/cmc]
on server org.apache.catalina.core.StandardService/1.0
java.net.ConnectException: Connection refused
[com.ibm.apimgmt.util.events.x2020.X2020EventPoster$X2020EventPosterRunnable.run]
Could not POST to: http://localhost:9500/cmc/monitoringevent
java.net.ConnectException: Connection refused
Please provide me your guidance.
Thanks & Regards,
Vijaykumar

DHCP (Dynamic Host Configuration Protocol) dynamically allocates IP addresses to a requesting host from a pool of IP addresses. While a DHCP server may preferentially allocate the same IP address to the same host for multiple requests, it is not guaranteed.
In contrast, a static IP address stays permanently associated to a host. In your case, the static IP address and the DHCP-assigned IP address do not match. Your connection goes through to the specific IP address you are trying to call. This target system may or may not exist. If such a system does exist, it will likely not be listening at the target port.
This is corroborated by the fact that you are getting a java.net.ConnectException: Connection refused error.

Related

PostgreSQL connection refused. Client presents with public IP address

I have .NET Core application which uses PostgreSQL. When I installed application on a machine which is presented to internet via IP address (Mikrotik via dst-nat), PostgreSQL server refuses connection with information that public IP address can't connect to PostgreSQL server.
But on Mikrotik router, I see that client tries to connect via internal IP address on the server port 5432, but (somehow) presents via public address. PostgreSQL server and client are in different subnets.
Thanks.

MongoDB connection refused if my public IP matches the one of the server

I created a public MongoDB server which is hosted on one of my computers. To test it I connected to another network on my laptop and connected to the server using my public IP and the port that I forwarded for MongoDB.
This worked fine.
However, if I connect my laptop to my LAN, the same one in which the server is connected to, I get a error:
[Errno 111] Connection Refused
Is it possible for me to connect to my own public server if my public IP matches the public IP of the server? It seems like some infinite feedback loop is happening where my public network is trying to connect to my public network.
I could always test if the clients public IP matches the server IP, and if it does to connect directly using the host computers IP instead, but first I want to see if there's a better way to handle this.
You cannot have two machines on the same network segment with the same address. This will cause issues with all kinds of applications because both machines will try to respond to traffic directed to either one.

unable to connect to openfire server with external ip

I'm trying to connect to openfire server using spark. I have dynamic dns, made port forwarding on port 5222 in d-link router. When i'm logging with host name as private ip for example "192.168.0.101" - connection is established, but when i'm setting my domain (pizokas.hopto.org) as host name i get the following error
Unknown connection error. Please review logs for the following information.
But there are no logs in openfire server, so i assume packets are dropped in router. I have firewall turned off. At this point i can't find information why the connection cannot be established. I'm using my own laptop as server and as a client, os win 10. Maybe somebody had similar issue?
The connection was established when i was trying to connect to server from outside of lan

hMail Server - Connection failed

I am having trouble with my hMail server. I am getting logs of errors in the logs saying
"SMTPC" 1840 0 "2017-12-22 09:58:01.745" "TCP" "SMTPDeliverer -
Message 1170761 - Connection failed: Host name: 203.147.156.193,
message: A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection
failed because connected host has failed to respond"
This has all started since we got blacklisted, we an incident that caused our ip to end up on some blacklists, since then I have added a rule on our Mikrotik router to route all port 25 from our mail server though a different external IP. This has resolve all the spam bounce backs but i am now getting a lot of connection failed bounce backs.
I am at loss as to where to go from here.
hMail Diagnostics
Test: Collect server details hMailServer version: hMailServer
5.4.1-B1951 Database type: MSSQL
Test: Test IPv6 IPv6 support is available in operating system.
Test: Test outbound port SMTP relayer not in use. Attempting
mail.hmailserver.com:25... Trying to connect to host
mail.hmailserver.com... Trying to connect to TCP/IP address
5.189.183.138 on port 25. Received: 220 mail.hmailserver.com ESMTP. Connected successfully.
Test: Test backup directory ERROR: Backup directory has not been
specified.
Test: Test MX records Trying to resolve MX records for
attachments.companionsoftware.com.au... Host name found:
qit-web.qit.local
Test: Test local connect Connecting to TCP/IP address in MX records
for local domain domain attachments.companionsoftware.com.au... Trying
to connect to host qit-web.qit.local... Trying to connect to TCP/IP
address fe80::e9e2:c285:fb4d:ef7a%14 on port 25. Trying to connect to
TCP/IP address fe80::b0f3:daf:daf6:9e0f%12 on port 25. Trying to
connect to TCP/IP address 10.243.1.16 on port 25. Received: 220
attachments.companionsoftware.com.au ESMTP. Connected successfully.
Test: Test message file locations Relative message paths are stored in
the database for all messages.
Test: Test IP range configuration No problems were found in the IP
range configuration.
I worked this out,
In my router i had specified all traffic from [internalip:25] goes out on [externalip:25]. When i removed the specific port and routed all traffic it started working.

Can't connect to my webserver from external source

I am having problems connecting to my website from a source outside my local network. I had another server before running the same site. The only difference is the old one was FreeBSD and now I'm trying it on Linux.
Here is my setup: I'm using Apache2. The server is behind a Netgear router. I'm using a Freedns host name. I have ddclient updating my ip.
Here is what happens: I can look at my site from the server in Chrome or my phone connected to the local wifi. It works using either the host name or ip address. It does not load from my cell phone or from my desktop using a proxy for either the host name or the ip address (the external one from googling my ip and from the router's wan info page). When I try the proxy with the host name I get "conection timed out" error, and when I try the ip address I get "couldn't connect to host error".
Here is what I've tried: I enabled port forwarding to the server from and to port 80 to my lan ip address. I disabled the firewall on the server. I double checked that the host name is directed to the right ip address. I ensured that the ip address does indeed point to my router. I've watched wireshark on my server while trying to connect and don't see any incoming requests when I try to load it from my phone.
It seems like maybe my port forwarding isn't working, but on my router it says that that port forwarding rule is active.
I'm out of ideas as to why what else could be going wrong.