unable to connect to openfire server with external ip - server

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

Related

How to set up a client/server connection using port forwarding

I created a multi-threaded client/server application that can send messages to each other at real time. Everything works perfectly, but I want to be able to send messages over the Internet. From what I understand, I need to do port forwarding to be able to make my server reachable for the clients. I then set up my port forwarding options by providing a port (9991) and then my Macbook Air's IP Address (192.168.0.1).
I then tried to connect to my server using my public server IP (let's say 197.132.20.222) and it didn't work. I then tried to see if the port forwarding worked by using this website: https://www.yougetsignal.com/tools/open-ports/ and I realized that the connection was closed. I also tried the command nc -vz 197.132.20.222 9991 while running my application and the connection is refused.
I'm using a JavaFX application, and for my server side I use a ServerSocket with port 9991. For the client side, I use a Socket and set the IP Address to my public router IP Address, and I tried to connect with another PC using mobile data to use a different network.
My firewall settings are turn off, so I really don't know what is blocking my application to connect to that port. Could it be my ISP is blocking connections? I just don't understand why my ports are blocked even with no firewalls enabled.

io.netty.channel.connecttimeoutexception connection timed out

after a change in the IP, our server has stopped working. Only the host can connect to the server. we already tried Whitelisting Java and the port, restarted the router, reinstalling java, and even made another complete server. It just stopped working. does anyone have a solution to this?
Have you port forwarded your router correctly?
If not then only connections from your LAN network can connect to the server.

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.

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

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.

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.