[SOLVED] SignalR Example only working on localhost


I’m following this tutorial.

Sadly i can only access the site from my local machine either under localhost or my ip adress. I changed every instance of ‘localhost’ to http://*:Port.

I also changed the applicationhost.config in my IIS Express to:

          <site name="JavascriptClient(1)" id="13">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="H:\Downloads\SignalR Self-Host Sample\C#\JavascriptClient" />
                <binding protocol="http" bindingInformation="*:31072:*" />

Also i’m running Visual Studio as Administrator. If i’m trying to access the server from another machine i get a timeout. How can i connect from another PC?

I just want to run the Server-Part of a Websocket so that my Cobol-Client can access an external Windows-Host to communicate.


Disabling the Firewall was the key to problem. Huge thanks to Stafford Williams!

Also the browser caching the default.html seems to be the problem with the page. changing the url to “http://*:8080” worked fine for the signalR host-side.
I also changed the SignalR hubs url in the default.html java-script part

<script src=""></script>
<!--Add script to update the page and send messages.-->
<script type="text/javascript">
    $(function () {
        //Set the hubs URL for the connection
        $.connection.hub.url = "";

My IP here was needed. Also refreshing in chrome (control + f5) the page after recompiling was needed to actually change the URL in the default.html.

Answered By – Uke

Answer Checked By – Marilyn (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *