# Accessing web server by IP

**URL:** <https://community.f5.com/t/accessing-web-server-by-ip/17105>\
**Category:** Technical Forums\
**Tags:** security, ltm, application-delivery\
**Created:** [June 8, 2016, 2:24am UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105 "2016-06-08T02:24:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![markn11\_229516](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@markn11\_229516](https://community.f5.com/u/markn11_229516)\
**Post date:** [June 8, 2016, 2:24am UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/1 "2016-06-08T02:24:28Z")

</div>

Hi,

Somewhat of a silly question here. I currently have a VIP setup for one of my web servers which uses https. I have the SSL certificate on my LTM. Everything is working as expected. One thing I noticed though was if I tried to visit the page via IP address, the F5 will not let me reach the site. Obviously, I’d always want to connect using the fqdn that matches the certificate, but I was expecting to see a certificate warning and being able to click continue on it anyway. I was not able to do that. I’m just trying to figure out why that is, just so I know.

---

<div class="post-metadata">

**Author:** ![gbam\_190768](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gbam\_190768](https://community.f5.com/u/gbam_190768)\
**Post date:** [June 8, 2016, 3:16am UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/2 "2016-06-08T03:16:28Z")

</div>

Test the connection from the F5 to the web server using a curl. See if you can get a response to the node IP directly. My guess is your problem is on the back end. The web server isn’t handling isn’t what site to return (IE it’s hosting multiple sites).

---

<div class="post-metadata">

**Author:** ![Ryannnnnnnnn](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@Ryannnnnnnnn](https://community.f5.com/u/Ryannnnnnnnn)\
**Post date:** [June 8, 2016, 5:04am UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/3 "2016-06-08T05:04:58Z")

</div>

You mentioned that you have an SSL certificate on your LTM, I assume you have created and applied a client SSL profile to you https virtual server? Are you performing SSL offloading or SSL bridging?

---

<div class="post-metadata">

**Author:** ![Ryan\_80361](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Ryan\_80361](https://community.f5.com/u/Ryan_80361)\
**Post date:** [June 8, 2016, 5:04am UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/4 "2016-06-08T05:04:58Z")

</div>

You mentioned that you have an SSL certificate on your LTM, I assume you have created and applied a client SSL profile to you https virtual server? Are you performing SSL offloading or SSL bridging?

---

<div class="post-metadata">

**Author:** ![markn11\_229516](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@markn11\_229516](https://community.f5.com/u/markn11_229516)\
**Post date:** [June 8, 2016, 12:34pm UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/5 "2016-06-08T12:34:38Z")

</div>

Correct. I have a Client SSL profile on it. The virtual server is configured for HTTPS (443), the members are configured for port 80. I’m performing SSL Offloading. @gbamm - there is only 1 website configured on the web server. I’ll have to do some research on using curl, I’ve never used before.

---

<div class="post-metadata">

**Author:** ![markn11\_229516](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@markn11\_229516](https://community.f5.com/u/markn11_229516)\
**Post date:** [June 8, 2016, 12:34pm UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/6 "2016-06-08T12:34:38Z")

</div>

Correct. I have a Client SSL profile on it. The virtual server is configured for HTTPS (443), the members are configured for port 80. I’m performing SSL Offloading. @gbamm - there is only 1 website configured on the web server. I’ll have to do some research on using curl, I’ve never used before.

---

<div class="post-metadata">

**Author:** ![Yann\_Desmarest\_1](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@Yann\_Desmarest\_1](https://community.f5.com/u/Yann_Desmarest_1)\
**Post date:** [June 8, 2016, 12:50pm UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/7 "2016-06-08T12:50:49Z")

</div>

Hi,

To test your webserver from F5, you can use curl :

```tcl
curl --verbose http://x.x.x.x/

```

add host header to your request :

```tcl
curl --verbose --header 'Host: www.example.com' http://x.x.x.x

```

add User-Agent to your request :

```tcl
curl --verbose -A "MySpecialUserAgent" http://x.x.x.x

```

You can also test your VS from the F5 system :

```tcl
curl -k --verbose --header 'Host: www.example.com' https://vs_ip_address

```

-k flag is used to bypass eventual ssl warnings

---

<div class="post-metadata">

**Author:** ![Yann\_Desmarest](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yann\_Desmarest](https://community.f5.com/u/Yann_Desmarest)\
**Post date:** [June 8, 2016, 12:50pm UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/8 "2016-06-08T12:50:49Z")

</div>

Hi,

To test your webserver from F5, you can use curl :

```tcl
curl --verbose http://x.x.x.x/

```

add host header to your request :

```tcl
curl --verbose --header 'Host: www.example.com' http://x.x.x.x

```

add User-Agent to your request :

```tcl
curl --verbose -A "MySpecialUserAgent" http://x.x.x.x

```

You can also test your VS from the F5 system :

```tcl
curl -k --verbose --header 'Host: www.example.com' https://vs_ip_address

```

-k flag is used to bypass eventual ssl warnings

---

<div class="post-metadata">

**Author:** ![Yann\_Desmarest](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@Yann\_Desmarest](https://community.f5.com/u/Yann_Desmarest)\
**Post date:** [June 8, 2016, 12:51pm UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/9 "2016-06-08T12:51:32Z")

</div>

Are you sure that your webserver listen on ip address or maybe some Virtual Hosting is used

---

<div class="post-metadata">

**Author:** ![Yann\_Desmarest\_1](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@Yann\_Desmarest\_1](https://community.f5.com/u/Yann_Desmarest_1)\
**Post date:** [June 8, 2016, 12:51pm UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/10 "2016-06-08T12:51:32Z")

</div>

Are you sure that your webserver listen on ip address or maybe some Virtual Hosting is used

---

<div class="post-metadata">

**Author:** ![jaikumar\_f5](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jaikumar\_f5](https://community.f5.com/u/jaikumar_f5)\
**Post date:** [June 9, 2016, 6:08am UTC](https://community.f5.com/t/accessing-web-server-by-ip/17105/11 "2016-06-09T06:08:23Z")

</div>

Can you take a tcpdump on this and analyze where the packet is resetting.
