2

Simple i have host the server in Console Application and i used 127.1.1.0 instead of localhost. Yeah i know if i use localhost then its will work fine..

But i want to know why on 127.1.1.0 its not work??

Its not work if i use local IP like 198.xxx.xx.xx. Why?

Its not work if i use Server live IP and run this console on Server pc , server live ip like 203.xxx.xx.xx.

using System;
using System.Threading.Tasks;
using SignalR.Hosting.Self;
using SignalR.Hubs;

namespace SignalRhost
{
    class Program
    {
        static void Main(string[] args)
        {
            string url = "http://127.0.0.1:8081/";

            var server = new Server(url);
            server.MapHubs();

            server.Start();
            Console.WriteLine("SignalR server started at " + url);

I get error . access Denied on server.start() method.

Please explain why its not work?? if i can't use server live ip then how can i run console on live server for test with client :OL?

Thanks Advance .

Adam
  • 173
  • 2
  • 14
  • 3
    possible duplicate of [HttpListener Access Denied](http://stackoverflow.com/questions/4019466/httplistener-access-denied) - either of the top 2 answers should help – Rhumborl Dec 31 '14 at 11:48
  • Can you tell me.i publish my console application for run its easy on other pc for test... how can i make my application to run as a administrator privileges – Adam Dec 31 '14 at 11:54
  • 1
    Look at [this answer](http://stackoverflow.com/a/2818776/1901857) – Rhumborl Dec 31 '14 at 11:55
  • Please tell me also . If client is behind Proxy ,firewall and firewall of client pc preventing some protocol like icmp or other port..then client is able to communicate with server ??? – Adam Dec 31 '14 at 11:59
  • 1
    That's something you have to try and test - if you need help you might be able to ask on http://superuser.com/ – Rhumborl Dec 31 '14 at 12:00
  • Thanks for the Quick Help Rhumbor . Again Thanks – Adam Dec 31 '14 at 12:02

0 Answers0