'Invalid hostname' response from http.sys - http

We have web service running hosted on an OwinHttpListener (http.sys behind the scenes). Whenever we send requests to the app on the IP address, it responds with 'Invalid hostname'.
After much trawling of stack overflow and google, im not really any closer to a solution. The requests are getting through to http.sys, as i can see them in the HTTP error log. I can log onto the server in question and access the service locally (using localhost or 127.0.0.1) and i can use the server name to successfully get through, the only failure condition is using the servers IP address.
Ive tried the following:
Ensure the app is listening on all interfaces (http://+:8080)
Ensure IIS is not trying to use the port (it isnt)
Ensure windows firewall is configured to allow traffic on that port (it is)

Related

IIS ASP.NET application responds to IP but not to domain name

I've got a problem with IIS. I got a ASP.NET application there running and I am able to connect to it from local network (http://192.168.100.121:12002/) and from outer network too (185.91.165.134:12002 , connecting via phone, because router doesn't support this feature).
The thing is when I try to connect via a domain name queue.laststep.eu, it says error: timed out.
I've asked my friend to tracert this domain name and it finished at the router the server is connected to, so I suppose DNS is configured properly.
Does anyone got an idea what may be blocking inbound traffic? (Firewall is off, ports on our primary router are forwarded...)
I am attaching a screenshot of the site bindings(got to put it on 3rd party server due to low reputation... https://imgur.com/a/hTvqivY)
Thank you for help!

Can't access IIS website from local IP

I have a .Net service hosted on IIS. The service was accessible from IP:Port/Service.asmx, until recently when I couldn't access it from IP or System name again but only from Localhost:port/Service.asmx. I have pinged the server and it is replying. I have also confirmed that the local ip is listening on port 80. Really I don't know what is wrong, I have been on this for so long.
That's a hard one. Things I'd try:
Rebooting system.
Set a breakpoint at the earliest part of the request pipeline to verify whether the request is making it into your .Net code
Make a browser request via IP for a static file like an image. Is that served? That lets you see if the server will respond for a request that likely isn't going through Asp.Net.

Google Cloud Messaging - Error [401 Unauthorized] on server only

My website (in php) should send Push notifications to an Android app. It used to work fine for some time, and suddenly stopped.
When I checked the return error code, it was 401 (Unauthorized)
I was using 0.0.0.0/0 as the allowed IPs. Seems it is no longer allowed after a grace period. So I set my DSL spool IP address and my server IP address. I have a dedicated IP to my cloud server (On RackSpace).
Then it worked in my localhost, but not on my cloud server. I also confirmed that my server outgoing IP is same as my server dedicated IP.
I had to set my Servers IPv6 address to Allowed IPs. Then it worked again - perfectly
[On Google Developers Console - API Credentials settings]
I'm documenting this for it would be helpful to someone else too.
Change the allowed IPs in your google console api project..

Published asp.net website not accessible in other system in same network

I have developed a asp.net website and published in a server.Whereas everything works perfectly in that server if i give browser from that IIS manager, and in server ( published system ) everything works perfect.But i need to access the same published application also in the other systems also ( which are connected in same network ). How is it possible..??
NOTE:
1. Used IIS 7.
When tried to connect from another system from same networ getting error as follows
The socket connection to 172.31.7.243 failed.
ErrorCode: 10060.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 172.31.7.243:90
If Your are accessing Your application on Hosted Server like this then just replace
localhost with ipaddress of hosted server to access it over the network
[localhost]/MyProjectName
then like this:
[IPaddress_of_HostedServer]/MyProjectName
It is possible that the HTTP traffic on port 80 incoming from the local network is blocked.
You should check if ISA server is installed on your server and if so if HTTP traffic on port 80 is allowed or not. If it's blocked try to allow it for the local network ip range.
Edit: Or port 90 as your error code states, but why are you working on port 90?

Problems with DNS

Good afternoon in my timezone.
I am developing a web appp in J2EE.
This web app is called and access inside a sharepoint portal.
When i enter through the sharepoint portal i can access my application, using chrome developes tools i can see all the HTTP traffic, and i see that the browsers sends a request to the following server that is where my app is running serverprd.enterprisename.com.
But when i use the command line in my windows 7 , to ping the machine(server) , for example :
ping serverprd.enterprisename.com it returns me the following message:
"Ping request could not find host serverprd.enterprisename.com"
I am using a proxy.
Can anyone tells me why this happening ? Why through the browser i can access the server and the ping command does not find me the server ?
With the best regards.
Thanks in advance.
Your proxy server id the one who have an access to outside world. All http requests are sent to proxy server and proxy server does DNS lookup. In case of pin, your host have to do DNS lookup and this operation obviously now allowed ( firewall or so).

Resources