Java Application send mail from laptop but not from windows Server - smtp

I have a simple servletapp which sends mail using the Googles smtp server i.e smtp.gmail.com.
I used the servlet code from from below link , as i am note a java devloper b have some knowledge of java:
http://www.studytonight.com/servlet/Sending-email-using-servlet.php
I have 2 tomcats , one is installed on my laptop and one is installed on a windows server on same network(both tomcat same version and using jdk and jre installed is of same version)
The issue is when I run the application from my local laptop, I get the mails in my inbox , but when run the application from the Winndows server , i do not get email in my inbox.
Ports are not blocked as I able to telnet on both port 587 and 465.
Also , I can send mail via command line using openssl from my laptop and the windows server.
IpV6 is disabled on both laptop and windows server as I read some where that is causes issue with javamail.
Regards,
R

Related

Powershell Remoting from windows to windows on different domain

I want to connect two windows server on different domains using powershell remoting.
I follows step that given in below blog
https://activedirectoryfaq.com/2018/09/import-powershell-sessions-from-computers-in-another-domain/
but it did not work for me. By following this blog, on connection it gives
**
Enter-PSSession : Connecting to remote server failed with the following error message : WinRM cannot
process the request. The following error occurred while using Kerberos authentication: Cannot find the computer
. Verify that the computer exists on the network and that the name provided is spelled correctly. For
more information, see the about_Remote_Troubleshooting Help topic
**
client server is windows server 2022 machine (powershell version 5.1.20348.1366)
remote server is windows server 2016 machine (powershell version 5.1.14393.1480)
Help me with it.

Connect to SSRS from different computer on home network

I am trying to access the SSRS web portal. I have SQL Server and Report Server installed on laptop with Windows 10. I want to access this from another laptop running windows 11 that is connected to the same home internet network.
The web portal works fine when I access it from the computer running Report Server:
But when I try to access the url from another the other computer on the same network, the page just doesn't load:
I tried to follow the instructions from this site: https://askgarth.com/blog/why-cant-i-access-my-ssrs-site-remotely/
I opened port 80 TCP protocol in windows firewall to allow connections.
I think that the issue may be the profile to which the rule applies:
The instructions I tried to follow said to open up the Domain. I also tried the Private option and still no luck.
I'm nervous about opening up ports on my firewall. But how can I set this up to access the Report Server from another computer on my network?
I've just checked my setup which is basically the same...
'Server' Desktop running Windows 10 Pro: Hosts SQL Server 2019 and SSRS
'Client' Desktop running Windows 11: Accessing SSRS from here
I checked the 'server' PC and the only SQL specific ports that are open are TCP port 1433 to allow me to access the database engine via SSMS etc from the 'client' PC and TCP port 80 (both are setup to domain + private although domain should be irrelevant)
I don't normally access the SSRS portal from the 'client' but it did work in as far as it said I do not have access to any reports, but it was showing the web portal page itself just fine.
You have probably done all this but here are a few things you could try...
Check if your version of Win10 is supported. If it's Win10 home for example it may not support everything required but this is just a guess.
Ping the server from the host and make sure you get a response (assuming PING response has not been turned off)
Check server firewall allows incoming on ports TCP 80 and TCP 1433 (1433 should not be required but you can always switch this off later)
Attempt access using the server ip e.g. http://192.168.1.123/Reports
If this all fails, turn off the windows firewall and test again. You can always disconnect your router from the internet whilst you do this to be safe. If this works then you at least know it's a firewall issue.
Check if you have any 3rd party anti-virus software that might be acting as a firewall - turn off and test again.

Internet disconnects from server as soon as i connect freeradius server box to client computer

I m trying to setup a captive portal using freeradius, coovachilli on Ubuntu 14 server(32 bit)
After the complete installation, the internet works fine on ubuntu server box with both freeradius and coovachilli running.
But when I connect client pc to second Ethernet card , the internet gets disconnected from server box and ofcourse the client machine also do not get the internet. However the client machine gets the IP 10.1.0.3 from dhcp.
I've reinstall the OS and the complete captive portal setup 5 times but the same pblm..
Where am I going wrong?
Note
When I install the OS my ethernet cards gets name as em1 and pp251. But I run apt get remove boisdevname and then update-initramfs -u to get the device name as eth0 and eth1. However the inbuilt card gets the name eth1 and the pci Ethernet card as eth0. So I put my internet cable to the second card so as to make my eth0 as WAN.

Consuming WCFREST Service from Windows Phone 8 using WebClient

with the reference to the Link
I am getting an error while running the application.
I am unable to find the solution to the problem.
May be you getting error because you are trying to call web service from local host. Host your web service some where in Http(Url). Windows phone emulator doesn't allow to call service from local host.

AIR for Android SocketServer over WiFi

Developing a multiplayer game for Android and using the AIR SocketServer class to communicate between server and client AIR applications.
On Windows 8 I am using Virtual Router Plus to set up my PC laptop(where the server app is running) as a wifi hotspot.
I run ipconfig in cmd after my wifi is running to grab the ipv4 IP address under 'Wireless LAN adapter Local Area Connection'
This is the IP I bind to in the server app and connect to in the client app.
If I launch both server and client on the same machine, everything works fine.
When I install the client app on my Android device, I am unable to establish a socket connection. The WiFi is running properly on my Android device.
Is a policy file necessary on the server machine when creating socketserver connections over a local wifi network?
If so, shouldn't the client app be throwing a security error when it tries to connect?
I am lost as to what my troubleshooting steps should be. ANY tips or feedback appreciated!
This happend because, the AIR Socket communication works only in Desktop application.
Try this native extension, it works perfectly form me:
http://blog.aboutme.be/2011/12/14/udp-native-extension-for-air-mobile-now-with-android-support/